DesktopContainer.AllowAutoDeactivate

From Xojo Documentation

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

New in 2021r3

Supported for all project types and targets.

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

The default is True.

Example

This example turns AllowAutoDeactivate off.

MyDesktopContainer.AllowAutoDeactivate = False