Silverfrost Forums

Welcome to our forums

changing button text colour in Clearwin

8 Sep 2006 6:20 #1002

I have a simple question which I'm sure must have a simple answer How do you change the text colour in a button ? I've tried %tc but that changes the text colour in the remainder of the window, but not for the button. I've also tried set_control_text_colour@ with the control handle from %lc, but this doesn't change the text colour either, though I can change the actual text with this handle using change_button_text@

Is there a way to do this using the Windows API ?

  1. Farrugia
8 Sep 2006 1:26 #1003

You could consider using %bi instead of text, though I suppose it's rather clumsy to create an icon just to replace text. 😃

8 Sep 2006 2:21 #1004

Louis

I cannot think of a way to set the text colour of a button and I was also going to suggest using %bi. It sounds tedious but it need not take very long. You can use Microsoft Paint directly or you can put the text on the screen and use the Print Screen key on the keyboard. Then paste into Microssoft Paint and cut out the bit that you want.

11 Sep 2006 5:53 #1022

Louis

I have added %bu to ClearWin+ for the next release. This is the same as %bc (before %bt) but sets the text colour rather than the background colour.

Please login to reply.