View Single Post
  #2  
Unread 02-10-2016, 01:08 PM
Darqwood's Avatar
Darqwood Darqwood is offline
A Griffon
Interface Author - Click to view interfaces
 
Join Date: Aug 2005
Posts: 851
Default

Depends on what you want to do with it. Buttons have a style that defines, among other things, the color of the text a) when you are not interacting with the button, b) when the mouse is hovering over the button, and c) when the button is disabled. If you look into the button styles you will see a PressedTextColor attribute but I have not used it successfully. MouseOverTextColor seems to override PressedTextColor.

If you want it to stay changed after the mouse moves away from it, you might look at the ToggleButton (which is really a checkbox that looks like a button.) Here you can use OnSet and OnUnset to change the TextColor. OnPress also works, but if you want it to behave like a normal button you will have to do something else, possibly use OnHoverOut to deactivate it and change back to the original color when the mouse exits the button.


.
Reply With Quote