Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1149
UltraDesktopAlertButton won't disable
posted

Hi everybody,

I'm trying DesktopAlert for the first time.

 I'm close to reach my goal, but I'm experiencing a bad behavior, please could you help me finding the right way or even saying me definitively it will not work?
I instantiated a DesktopAlert, then added a  UltraDesktopAlertButton to DesktopAlertButtonsCollection:

Infragistics.Win.Misc.UltraDesktopAlert tip = new Infragistics.Win.Misc.UltraDesktopAlert();
DesktopAlertButtonsCollection alertButtons = tip.AlertButtons;
UltraDesktopAlertButton button = alertButtons.Add("My_Button");
button.Appearance.Image = new Bitmap(16,16);
button.ToolTipText = "never disabled button";

So far so good

Then I set following property:

button.Enabled = false;

I was expecting to see that button grayed-out with no interoperability, but I was so surprised when run the application and seen the button perfectively active.

What's wrong?

Thanks in advance

Gianni

 

 

 

 

 

 

 

Parents
  • 48586
    posted

    Hello,

     

    I have created a small sample where the disabled alert button has grey appearance. Please run the sample and hover the mouse over the button, in order to display the alert. You will see 2 buttons, one in grey (disabled) and the other normal one. I hope that this will resolve  your issue.

     

    Thank you for using Infragistics Components.

    WinDesktopAlertButton.zip
Reply Children