Button Disabling
-
Hi I have a problem with disabling a button. When i need to disable a button then i do not want the DrawImageDisabled function to be called. Instead i just need it to be replaced with the image i provide. How can this be handled? Please help me out in this. Thanks and Regards Madhu
-
Hi I have a problem with disabling a button. When i need to disable a button then i do not want the DrawImageDisabled function to be called. Instead i just need it to be replaced with the image i provide. How can this be handled? Please help me out in this. Thanks and Regards Madhu
Maybe, when the event is triggered to disable it, replace the image with the one you want, and then put an if() clause in the OnClick event to say if the image is X (or a bool you have attatched to it) then do this, otherwise break. Regards James
-
Hi I have a problem with disabling a button. When i need to disable a button then i do not want the DrawImageDisabled function to be called. Instead i just need it to be replaced with the image i provide. How can this be handled? Please help me out in this. Thanks and Regards Madhu
Create your own button control, inheriting from the original Button class. Override the drawing code and supply your own to draw the correct image you want. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome