ContainerControl.AllowFocus
From Xojo Documentation
Property (As Boolean )
a<See Below>.AllowFocus = newBooleanValue
or
BooleanValue = a<See Below>.AllowFocus
New in 2019r2
Supported for all project types and targets.
or
BooleanValue = a<See Below>.AllowFocus
New in 2019r2
Supported for all project types and targets.
If True, the control will be included in the Tab order and can accept the focus. The GotFocus and LostFocus events are called at the appropriate times.
Notes
Some controls automatically allow focus, e.g. text fields or lists, so they do not have AllowFocus property.
Not all controls allow focus on every platform. More information is available on GotFocus and LostFocus events. |
Controls implementing the AllowFocus property
BevelButton | ||
Canvas | ||
ContainerControl | ||
DisclosureTriangle | ||
Scrollbar | ||
UpDownArrows |
Sample Code
This code enables the AllowFocus property. It is in the Open event of the control.