How to change a button's font color while pressed down?

Help each other out

How to change a button's font color while pressed down?

Postby jovial_mood on Sat May 28, 2005 8:43 pm

How do I change the font color for the text on a button that is pressed down?

As it is now I can create a resource that is named btn_txt and assign it a font color. I have then created a child resource named enter and have assigned it another font color. The resource btn_txt is used when the button is not highlighted and the resource enter is used when it is. That's fine.

I thought I could use a second child resource named down to be able to choose the color when the button is pressed down, but I can't. The button's font color when pressed is always the same as the 'main' resource. I want the text to move when the button is pressed (as it does now) but I don't want the font color to change from its enter state. Is that possible and if so, how?

Thanks
jovial_mood
 
Posts: 55
Joined: Sun May 22, 2005 6:07 am
Location: Sweden

Postby Colby on Sat May 28, 2005 9:33 pm

I dont think that Steve ever implemented the child called down. Although that is a good idea. So I dont think its possible really. You have a couple of options, embed the text into the button itsself or trick something up with show/hide, which is less than ideal. You could use press events to hide a textbox over a button and show to bring back the colors. I would just request to steven to make a RESOURCE child, Named "down".
Colby
 
Posts: 929
Joined: Mon Feb 02, 2004 7:42 am
Location: Brookline Station, MO, USA

Postby jovial_mood on Sun May 29, 2005 6:13 am

Thanks, it felt a little awkward to use events if it already existed a child resource for the purpose. :)

I'll probably use textboxes for now but also request a new child resource as you suggested.
jovial_mood
 
Posts: 55
Joined: Sun May 22, 2005 6:07 am
Location: Sweden