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

disabled buttons and tooltips

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

3 Replies

J. J.Nagarajan Syncfusion Team August 9, 2007 09:28 PM UTC

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


JL Julie Levy August 10, 2007 09:40 PM UTC

Thanks!


J. J.Nagarajan Syncfusion Team September 6, 2007 08:53 PM UTC

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

Loader.
Live Chat Icon For mobile
Up arrow icon