XTPToolBarFlags Enumeration
Description
Specifies various command bar attributes that determine where the command bar can be docked and how the command bar wraps.
Members
xtpFlagAlignTop
-
For a Toolbar:
Specifies that the command bar can be docked to the top edge of the form. -
For a DialogBar:
Specifies that the dialog bar can be docked to the top edge of the form. -
For a RibbonBar:
Specifies that the Ribbon Bar can be docked to the top edge of the form.
xtpFlagAlignBottom
-
For a Toolbar:
Specifies that the command bar can be docked to the bottom edge of the form. -
For a DialogBar:
Specifies that the dialog bar can be docked to the bottom edge of the form. -
For a RibbonBar:
Specifies that the Ribbon Bar can be docked to the bottom edge of the form.
xtpFlagAlignLeft
-
For a Toolbar:
Specifies that the command bar can be docked to the left edge of the form. -
For a DialogBar:
Specifies that the dialog bar can be docked to the left edge of the form. -
For a RibbonBar:
Not used with Ribbon Bar.
xtpFlagAlignRight
-
For a Toolbar:
Specifies that the command bar can be docked to the right edge of the form. -
For a DialogBar:
Specifies that the dialog bar can be docked to the right edge of the form. -
For a RibbonBar:
Not used with Ribbon Bar.
xtpFlagAlignAny
-
For a Toolbar:
Specifies that the command bar can be docked to any edge of the form. When the command bar width is larger than the window width, the controls that cannot be displayed WILL wrap below the command bar. -
For a DialogBar:
Specifies that the dialog bar can be docked to any edge of the form. -
For a RibbonBar:
Not used with Ribbon Bar.
xtpFlagFloating
-
For a Toolbar:
Specifies that the command bar can be a floating command bar. -
For a DialogBar:
Specifies that the dialog bar can be a floating dialog bar. -
For a RibbonBar:
Not used with Ribbon Bar.
xtpFlagHideWrap
-
For a Toolbar:
Specifies that when the command bar width is larger than the window width, the controls that cannot be displayed will NOT wrap below the command bar. A chevron control will be placed at the end of the command bar to allow you to access the hidden controls. -
For a DialogBar:
Not used in dialog bar. -
For a RibbonBar:
Not used with Ribbon Bar.
xtpFlagStretched
-
For a Toolbar:
Specifies that the command bar is stretched across the entire window. Only one Toolbar can occupy a row with the xtpFlagStretched flag. -
For a DialogBar:
The CaptionPopupBar is stretched within the dialog bar and cannot be changed. This flag is not used in the dialog bar. -
For a RibbonBar:
Specifies that the Ribbon Bar is stretched across the entire window. Only the Ribbon Bar can occupy the row with the xtpFlagStretched flag.
xtpFlagStretchedShared
- For a Toolbar:
Specifies that the ToolBar will stretch the entire available width. If the Toolbar is the only Toolbar on the row, it will stretch the entire row. If there are multiple Toolbars on the row, the Toolbar will stretch the remaining available area.
This is different from the xtpFlagStretched flag in that it allows multiple Toolbars on a row, while the xtpFlagStretched flag only allows one.
xtpFlagSmartLayout
- Enables smart layout.
Remarks
The EnableDocking Method is used to apply the XTPToolBarFlags to a command bar. Any combination of the flags can be used at the same time.
See Also
Copyright (c) 1998-2024 Codejock Technologies. All rights reserved.