TImageEnPaletteDialog.Execute
Declaration
function Execute(): Boolean;
Description
Executes the dialog. Returns True if the user select a color, otherwise False if the user Cancel the dialog.
Use SelCol property to get the color selected as
TColor or NumCol to get as Integer index.
Example
var
palDlg: TImageEnPaletteDialog;
begin
palDlg := TImageEnPaletteDialog.Create( Self );
palDlg.SetPalette(ImageEnView1.IO.Params.ColorMap^, ImageEnView1.IO.Params.ColorMapCount);
if palDlg.Execute then
Panel1.Color := palDlg.SelCol;
palDlg.Free();
end;
See Also
◼IEPromptForColor