We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

AutoHideButtonRect - deprecated, what is the equivalent

Hi there,

I was using AutoHideButtonRect, and it seems that it has been deprecated from 4.4 to 5.1, are there any alternatives to use?

Thanks,
Jon

2 Replies

VH Vignesh H Syncfusion Team August 14, 2007 11:59 PM UTC

Hi Jon,

Thanks for using Syncfusion Products.

In our latest version, the properties AutoHideButtonRect, MenuButtonRect, CloseButtonRect etc are modified into a enum type i.e., CaptionButtonType.Pin, CaptionButtonType.Menu, CaptionButtonType.Close etc inorder to increase efficiency of the code.

In the older version, the control has to perform are hard coded as shown below
>>>>>>
protected Rectangle AutoHideButtonRect
{
// functionality which it has to perform.
// logic to render the border rectangle when the mouse hover take place.
}
>>>>>>

In v5.1
>>>>>
GetButtonImageBounds(CaptionButtonType buttonType)
{
//new Rectangle object to be drawn here
}
>>>>>

The buttons, drawing and the functionality are changed to follow better design pattern for the developers.
Kindly let us know if you need any further assistance.

Regards,
Vignesh


JO Jon September 5, 2007 05:50 PM UTC

Thanks Vignesh

Jon

Loader.
Live Chat Icon For mobile
Up arrow icon