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.
Unfortunately, activation email could not send to your email. Please try again.

disabled buttons and tooltips

Thread ID:

Created:

Updated:

Platform:

Replies:

67031 Aug 7,2007 02:31 PM Sep 6,2007 04:53 PM Windows Forms 3
loading
Tags: Tools
Julie Levy
Asked On August 7, 2007 02:31 PM

Hi -
is there a way to show either a regular or supertooltip on one of your buttons when it is disabled?
Thanks,
Julie

J.Nagarajan [Syncfusion]
Replied On August 9, 2007 05:28 PM

Hi Julie,

Thanks for your interest in SYncfusion product. If you want to show the tooltip of the disabled button then you can write your own delegate and activate the tooltip in that event. Please refer to the following code snippet.

public delegate void ButtonMouseMove(object sender, MouseEventArgs args);
public event ButtonMouseMove buttonmousemove;
public Form1()
{
InitializeComponent();
this.buttonmousemove += new ButtonMouseMove(Form1_buttonmousemove);
}
ToolTip tip = new ToolTip();
private void Form1_MouseMove(object sender, MouseEventArgs e)
{
RectangleF bounds = this.buttonAdv1.Bounds;
RectangleF rect= new RectangleF(e.X,e.Y,0,0);
if (bounds.IntersectsWith(rect))
{
this.buttonmousemove(sender, e);
}
else
tip.Active = false;
}

void Form1_buttonmousemove(object sender, MouseEventArgs args)
{
tip.Active = true;
tip.SetToolTip(this, "Button");
}

I have attached the sample that demonstrates this completely. You can download the sample from the following page

http://websamples.syncfusion.com/samples/Tools.Windows/F67031/main.htm

Please refer to it and let me know if you have any questions.

Regards,
Nagaraj

Julie Levy
Replied On August 10, 2007 05:40 PM

Thanks!

J.Nagarajan [Syncfusion]
Replied On September 6, 2007 04:53 PM

Hi Julie,

Thanks for the update.

Please feel free to contact us if you have any other questions.

Thanks for your continued interest in Syncfusion product.

Regards,
Nagaraj

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.

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.

;