ImageEn, unit hyieutils

TImageEnPaletteDialog.Execute

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