Board index » cppbuilder » Buttons color
Tanya
![]() CBuilder Developer |
Tanya
![]() CBuilder Developer |
Buttons color2003-09-19 10:12:01 PM cppbuilder40 Is it possible to change color of buttons (TButton, TBitBtn) in BCB6 ? Thank you in advance, Tanya |
Remy Lebeau (TeamB)
![]() CBuilder Developer |
2003-09-20 03:52:12 AM
Re:Buttons color
"Tanya" < XXXX@XXXXX.COM >wrote in message
QuoteIs it possible to change color of buttons (TButton, TBitBtn) in BCB6 ? is just an owner-drawn TButton, however it still uses the default coloring for the areas not occupied by the Glyph. To change TBitBtn's coloring, you would have to subclass the button and handle all of the drawing manually. Gambit |
Rodolfo Frino
![]() CBuilder Developer |
2003-09-21 11:49:27 AM
Re:Buttons color
You can use this button that I developed and add a focus rectangle around it
www.geocities.com/rodolfofrino/SGColorSpeedButton.html and also the method associated with the behaviour that you want for the focus rect. It is the easiest and most powerful method there is. Rodolfo "Tanya" < XXXX@XXXXX.COM >wrote in message QuoteIs it possible to change color of buttons (TButton, TBitBtn) in BCB6 ? {smallsort} |
Bruce Fullerton
![]() CBuilder Developer |
2003-10-03 02:38:27 PM
Re:Buttons color
You can also simulate a button using a panel. Experiment with the border
properties for normal view and onClick to give the impression of the button being depressed. You can also change the button caption colors etc by using a label, but you will also have to set the onClick events for the Label as well as the panel so that it all works if your cursor is over the Label. "Tanya" < XXXX@XXXXX.COM >wrote in message QuoteIs it possible to change color of buttons (TButton, TBitBtn) in BCB6 ? |