DesktopToolbarButton.ButtonStyles

From Xojo Documentation

You are currently browsing the old Xojo documentation site. Please visit the new Xojo documentation site!

Enumeration
ToolbarButton.ButtonStyles

New in 2021r3

Specifies the button styles available.

Values

enum Description
PushButton The ToolButton is a pushbutton.
ToggleButton The ToolbarButton is a button that toggles between its normal and depressed state. It does not affect the state of any other Toggle buttons in the Toolbar. On macOS, only a single ToggleButton may be in the "Pressed" state at one time. Pressing one changes the state of the other toggle buttons, effectively making them work similarly to RadioButtons.
Separator The ToolbarButton is a separator. Not supported on macOS.
DropDown The ToolbarButton is a drop-down menu. On Windows, an arrow is drawn by default. To specify the menu, assign it to the Menu property of the ToolbarButton class. Handle the selected menu item in the DropDownMenuAction event of the Toolbar class. See the example for the ToolbarButton class.
SeparateDropDown The ToolbarButton is a drop-down menu with a separate down arrow on its right. There is room for the caption and the icon. To specify the menu, assign it to the Menu property of the ToolbarButton class. Handle the selected menu item in the DropDownMenuAction event of the Toolbar class. See the example for the ToolbarButton class.
Space The ToolbarButton is a fixed-width space between ToolbarButtons. This is not supported on Windows, so no extra button or space appears.
FlexibleSpace The ToolbarButton is a variable-width space between ToolbarButtons. It right-aligns the buttons to its right as the window is resized. This is not supported on Windows, so no extra space or button will be inserted.