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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

AutoHideButtonRect - deprecated, what is the equivalent

Thread ID:

Created:

Updated:

Platform:

Replies:

67334 Aug 14,2007 01:33 PM UTC Sep 5,2007 05:50 PM UTC WinForms 2
loading
Tags: Tools
Jon
Asked On August 14, 2007 01:33 PM UTC

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

Vignesh H [Syncfusion]
Replied On 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

Jon
Replied On September 5, 2007 05:50 PM UTC

Thanks Vignesh

Jon

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;