Colored TButton - TColorButton - Delphi Button with Color Properties
Friday January 2, 2009
ARTICLES ::
Full source code of the TColorButton Delphi component, an extension to the standard TButton control, with font color, background color and mouse-over color properties.
Full source code of the TColorButton Delphi component, an extension to the standard TButton control, with font color, background color and mouse-over color properties.
Read the full article to learn how to write your own and use TColorButton - Delphi Button with Color Properties.
Related:
- Implement a Button with a Drop Down Menu
- Create a Time Out Button / Entry Form
- Creating and enhancing VCL components
Roy Damman enhanced my TColorButton by adding MultiLine and ColorClick properties. Plus: "ForeColor" made available by Font.Color; "BackColor" made available by publishing the Color property.
Download TColorButton Enhanced


Comments
I’ve downloaded this before, does anyone know if this one adapts to the windows xp styling (using the winxp.res file)? The previous one did not, so the buttons stuck out like a sore thumb against the rounded edges of regular buttons.
his was very useful, adding a drop-down to a button had been confusing me for some time, thanks for the simple example - have implemented it and now understand what I was doing wrong.