Page 1 of 1

Setting a button to "pushed down" state?

Posted: Wed Nov 12, 2008 5:06 am
by Garrett
Is it possible to have a button stay pushed in until the user clicks on a button again, and then let it come back up to a normal state?

Like I want a button for say "Word Wrap" in a text editor. If it's not currently in wrap mode, the button is normal like all the other buttons, but if the user presses that button, it's pushed down, stays down and Wrap is now on. Then if the user clicks that button again, it comes back up and Wrap is off.

Thanks in advance,
~Garrett

Posted: Wed Nov 12, 2008 6:27 am
by Janschenkel
Look at the 'hilite' property of buttons. For checkboxes, this dictates whether they're checked - and for other buttons it dictates whether it's pushed in.

HTH,

Jan Schenkel.

Posted: Wed Nov 12, 2008 8:53 am
by Garrett
Oooo... Sweet! Thanks Jan :-)

Posted: Wed Nov 12, 2008 12:14 pm
by Klaus
Yep, simply uncheck the "autohilte" feature of your button(s) and roll your own un-/hilite routine.