ContainerControl.AllowAutoDeactivate

From Xojo Documentation

Property (As Boolean )
aContainerControl.AllowAutoDeactivate = newBooleanValue
or
BooleanValue = aContainerControl.AllowAutoDeactivate

New in 2019r2

Supported for all project types and targets.

Determines whether the control should be deactivated (on macOS) when the parent window is deactivated.

The default is True.

Example

This example turns AllowAutoDeactivate off.

ContainerControl11.AllowAutoDeactivate = False