ImageEn, unit iexToolbars |
|
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:
Default: ievEditing
// 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;