ImageEn, unit iexColorButton

TIEColorButton.OnChange

TIEColorButton.OnChange


Declaration

property OnChange: TNotifyEvent;


Description

Occurs whenever the color changes.

Note: OnChange occurs even when SelectedColor is set by code. Use OnSelectColor to only react to user actions.


Examples

procedure TfrmMain.IEColorButtonChange(Sender: TObject);
begin
  // Use the selected color as the layer fill color
  ImageEnView1.CurrentLayer.FillColor := IEColorButton1.SelectedColor
end;