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.


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
- AutoToolbars