From Xojo Documentation

Revision as of 00:33, 25 January 2022 by Gperlman (talk | contribs) (Sample Code)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
You are currently browsing the old Xojo documentation site. Please visit the new Xojo documentation site!

Property (As Boolean )
aDesktopCanvas.AllowFocus = newBooleanValue
BooleanValue = aDesktopCanvas.AllowFocus

New in 2021r3

Supported for all project types and targets.

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

Sample Code

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

Me.AllowFocus = True