TTMSFNCCustomToolBar Class
Base class for the TMS FNC Toolbar control; hosts button, separator, picker, and combo box elements, manages compact overflow, options menu, drag grip, and flat/large layout modes.
API unit family: TMSFNCToolBar
Inherits from: TTMSFNCCustomControl
Implements: ITMSFNCStylesManager, ITMSFNCBitmapContainer
Syntax
TTMSFNCCustomToolBar = class(TTMSFNCCustomControl, ITMSFNCStylesManager, ITMSFNCBitmapContainer)
Methods
| Name | Description |
|---|---|
| AddBitmapPicker | Creates and adds a TTMSFNCToolBarBitmapPicker to the toolbar. |
| AddColorPicker | Creates and adds a TTMSFNCToolBarColorPicker to the toolbar. |
| AddCustomControl | Adds an existing control instance to the toolbar at the given position. |
| AddCustomControlClass | Creates a new control of the specified class, adds it to the toolbar, and returns the new instance. |
| AddFontNamePicker | Creates and adds a TTMSFNCToolBarFontNamePicker to the toolbar. |
| AddFontSizePicker | Creates and adds a TTMSFNCToolBarFontSizePicker to the toolbar. |
| AddItemPicker | Creates and adds a TTMSFNCToolBarItemPicker to the toolbar. |
| AddSeparator | Creates and adds a TTMSFNCToolBarSeparator to the toolbar. |
| Build | Rebuilds all toolbar controls and their layout. Call after programmatically adding or removing items at runtime. |
| CanExpand | Returns True if the toolbar can be expanded to show more buttons than are currently visible. |
| CanShrink | Returns True if the toolbar can be shrunk to hide overflow buttons into the options menu. |
| CloseCompactPopup | Closes the compact toolbar popup if it is currently open. |
| Draw | Renders the toolbar background, drag grip, and separator line. |
| DropDownActive | Returns True if any button on the toolbar currently has an open drop-down popup. |
| GetOptionsMenuButtonControl | Returns the internal drop-down button used for the overflow (options menu) at the right edge of the toolbar. |