ImageEn, unit iexColorButton |
|
TIEColorButton.SelectedColor
Declaration
property SelectedColor: TColor;
Description
Specifies the color shown in the component.
Note: If you
allow transparency then
SelectedColor may be clNone
Default: clWhite
IEColorButton1.SelectedColor := clRed;
IEColorButton1.SelectedColor := TRGB2TColor( rgba );
ImageEnView1.CurrentLayer.FillColor := IEColorButton1.SelectedColor;
// Save selected color to ini file
ini.WriteString( 'Settings', 'BorderColor', ColorToString( btnColor.SelectedColor ));
// Read selected color from ini file
btnColor.SelectedColor := StringToColor( ini.ReadString( 'Settings', 'BorderColor', ColorToString( clBlack )));
See Also
◼TRGB2TColor◼TColor2TRGB