ImageEn, unit iexToolbars

TImageEnViewToolbar.ButtonMode

TImageEnViewToolbar.ButtonMode


Declaration

property ButtonMode: TIEViewMode;


Description

Specify the default buttons of the toolbar.
If Buttons is [], then ButtonMode uses the relevant global toolbar property to determine which buttons to include:
Item Toolbar Settings
ievViewing ImageViewingToolbar
ievEditing ImageEditingToolbar
ievLayerEditing LayerEditingToolbar
ievSelection ImageSelectionToolbar
ievLayerSelection LayerSelectionToolbar
ievPdfViewing PdfViewingToolbar
ievPdfEditing PdfEditingToolbar

Default: ievEditing


Example

// Show buttons relevant to layer editing
ImageEnViewToolbar1.Buttons := [];
ImageEnViewToolbar1.ButtonMode := ievLayerEditing;

// Show layer editing buttons, but without open and save buttons
IEGlobalSettings().LayerEditingToolbar.Buttons := IEGlobalSettings().LayerEditingToolbar.Buttons - [ ivbLayerOpen, ivbLayerSave ];
ImageEnViewToolbar1.Buttons := [];
ImageEnViewToolbar1.ButtonMode := ievSelection;