Window.Focus
From Xojo Documentation
You are currently browsing the old Xojo documentation site. It will go offline as of October 2, 2023. Please visit the new Xojo documentation site! - you will be redirected shortly... |
Property (As RectControl )
aWindow.Focus = newRectControlValue
or
RectControlValue = aWindow.Focus
Supported for all project types and targets.
or
RectControlValue = aWindow.Focus
Supported for all project types and targets.
Gets or sets the RectControl in the window that has the focus. If no control has the focus, this property is Nil.
Example
The following example reports on the control in the ContainerControl that has the focus.
MessageBox(ContainerControl11.Focus.Name)