PDA

View Full Version : TSpeedButton (Color)


N/A
04-03-2000, 06:15 PM
Is there an easy way to specify the face color of TSpeedButton?

N/A
04-03-2000, 08:47 PM
This is your problem, Windows will always repaint your button with the defined color in the the control panel.



In order to set the color for your button you will need to create a component and include some owner-drawn events.



You can find many examples, in fact just search the components of delphi pages for "color button". *That will give you an idea of how to accomplish this with a speed button.



I know that Utilminds has a "Button With Color" that is a Bitbtn, and comes with the source code.



Good Luck,



Douglas Tietjen

N/A
04-03-2000, 09:06 PM
Thanks Douglas,



Yes, I've seen BitBtn... I need the "GroupIndex" properties of TSpeedButton though. *