BevelButton.ButtonType

From Xojo Documentation

Property (As Integer )
aBevelButton.ButtonType = newIntegerValue
or
IntegerValue = aBevelButton.ButtonType

Supported for all project types and targets.

The type of the button.

Notes

It can take on the following values:

Value Description
0 Button. Remains in the “down” position until mouse is released.
1 Toggles. Remains in the “down” position until clicked again.
2 Sticky. Remains in the “down” position when clicked.

Sample Code

This code changes the button to a "Toggles" button.

Me.ButtonType = 1