ImageEn, unit iexToolbars

TCustomImageEnToolbar.OnAddButtonImage

TCustomImageEnToolbar.OnAddButtonImage


Declaration

property OnAddButtonImage: TIEAddButtonImageEvent;


Description

Add this event to your code to customize the images of toolbar buttons.
ButtonImageID will be one of the Toolbar Button Image Consts.

Note: You can alternatively use the global event, OnAddToolbarButtonImage


Examples

procedure TMainForm.ImageEnViewToolbar1AddButtonImage(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.ImageEnViewToolbar1AddButtonImage(Sender: TObject; ButtonImageID: Integer; var Bitmap: TIEBitmap);
begin
  ImageList1.GetBitmap(ButtonImageID - ITBRES_MIN_INDEX, Bitmap);
end;


See Also

- OnAddToolbarButtonImage
- ImageEditingToolbar
- ImageSelectionToolbar
- ImageViewingToolbar
- LayerEditingToolbar
- LayerSelectionToolbar
- PdfEditingToolbar
- PdfViewingToolbar