ImageEn, unit iesettings

TIEImageEnGlobalSettings.OnAddToolbarButtonImage

TIEImageEnGlobalSettings.OnAddToolbarButtonImage


Declaration

property OnAddToolbarButtonImage: TIEAddButtonImageEvent;


Description

Add this event to your code to customize the images that are added to buttons of ImageEn toolbars.
ButtonImageID will be one of the Toolbar Button Image Consts.

Notes:
- This event is also used for glyphs of the Acquire Form dialog, and buttons of TImageEnLayerMView
- Ensure you reset this event before destroying your form, e.g. IEGlobalSettings().OnAddToolbarButtonImage := nil;


Examples

IEGlobalSettings().OnAddToolbarButtonImage := AddButtonImage;

procedure TMainForm.AddButtonImage(Sender: TObject; ButtonImageID: Integer; var Bitmap: TIEBitmap);
begin
  // Make buttons bright red
  with TImageEnProc.CreateFromBitmap( Bitmap ) do
  begin
    HSVvar( 150, 10, 30 );
    Free;
  end;
end;

// Get button image from my own image list
procedure TMainForm.AddButtonImage(Sender: TObject; ButtonImageID: Integer; var Bitmap: TIEBitmap);
begin
  ImageList1.GetBitmap(ButtonImageID - ITBRES_MIN_INDEX, Bitmap);
end;


See Also

- OnAddButtonImage
- ImageEditingToolbar
- ImageSelectionToolbar
- ImageViewingToolbar
- LayerEditingToolbar
- LayerSelectionToolbar
- PdfEditingToolbar
- PdfViewingToolbar
- AutoToolbars