AcceptFocus property
From Xojo Documentation
This item was deprecated in version 2019r2. Please use AllowFocus as a replacement. |
Property (As Boolean )
a<See Below>.AcceptFocus = newBooleanValue
or
BooleanValue = a<See Below>.AcceptFocus
Supported for all project types and targets.
or
BooleanValue = a<See Below>.AcceptFocus
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 accept focus, e.g. text fields or lists, so they do not have AcceptFocus property.
Not all controls can accept focus on every platform. More information is available on GotFocus and LostFocus events. |
Controls implementing the AcceptFocus property
BevelButton | New in 2005r1 | |
Canvas | ||
ContainerControl | ||
DisclosureTriangle | New in 2005r1 | |
Scrollbar | New in 2005r1 | |
UpDownArrows |
Sample Code
This code enables the AcceptFocus property. It is in the Open event of the control.