DesktopBevelButton.AllowFocus

From Xojo Documentation

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

New in 2021r3

Supported for all project types and targets.

If True, the button will be included in the Tab order and can accept the focus. The events FocusReceived and FocusLost are called at the appropriate times.

Sample Code

This code enables the AllowFocus property. It is in the Opening event of the control.

Me.AcceptFocus = True