DesktopBevelButton.Value

From Xojo Documentation

Property (As Boolean )
aDesktopBevelButton.Value = newBooleanValue
or
BooleanValue = aDesktopBevelButton.Value

New in 2021r3

Supported for all project types and targets.

If True, the button appears depressed.

Sample Code

This code is in the Pressed event of a DesktopCheckBox. It toggles the state of the DesktopBevelButton depending on whether the DesktopCheckBox was checked.

If Me.Value Then
BevelButton1.Value = True
Else
BevelButton1.Value = False
End If