Preventing disabled control from graying-out

  • Thread starter Thread starter Ana Lindt
  • Start date Start date
A

Ana Lindt

Hello all,

I can't find a way to change/prevent the disabled (grayed-out) appearance of
controls. Things get even more complicated because the control i'm trying to
prevent from graying-out is a ToolBar button, and toolbar buttons are not
derived from the Control class (?!!).

I've also tryed a workaround to this issue by trying to handle the
onMouseHover event of the toolbar to prevent the hover effect (when you
hover the mouse over the button its border changes slightly). I have had
little success.

So these are the things i'd like to do:
- Either change the "Enabled = false" behaviour of the button
- Or disable the hover effect + the pushing effect

Just in case you're wondering why I want to do this, it's because I use high
color icons for my toolbar buttons and the standard gray-out effect looks
really ugly with my 16bit color button - I'd like a grayscale effect like in
MS Office applications.

Best regards,

Ana L.
 
Ana - I don't know of a way of getting that to work with the built-in
toolbar control. You may have to fashion your own "custom" toolbar using
multiple button controls on a panel. You would then have greater control
over each individual button...
 
Back
Top