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
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.


The following example reports on the control in the ContainerControl that has the focus.