ToolButton.Style

From Xojo Documentation

Property (As Integer )
aToolButton.Style = newIntegerValue
or
IntegerValue = aToolButton.Style

Supported for all project types and targets.

Determines the type of button.

Notes

Use the following class constants:

Class Constant Description
ToolStylePushButton The ToolButton is a pushbutton.
ToolStyleToggleButton The ToolButton 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 "Pushed" state at one time. Pushing one changes the state of the other toggle buttons, effectively making them work similarly to RadioButtons.
ToolStyleSeparator The ToolButton is a separator. Not supported on macOS.
ToolStyleDropDown The ToolButton is a drop-down menu. On Windows, an arrow is drawn by default. To specify the menu, assign it to the DropDownMenu property of the ToolButton class. Handle the selected menu item in the DropDownMenuAction event of the Toolbar class. See the example for the ToolButton class.
ToolStyleSeparateDropDown The ToolButton 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 DropDownMenu property of the ToolButton class. Handle the selected menu item in the DropDownMenuAction event of the Toolbar class. See the example for the ToolButton class.
ToolStyleSpace The ToolButton is a fixed-width space between ToolButtons. This is not supported on Windows, so no extra button or space appears.
ToolStyleFlexibleSpace The ToolButton is a variable-width space between ToolButtons. 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.