From Xojo Documentation
| This item was deprecated in version 2019r2.
Please use RectControl.AllowAutoDeactivate as a replacement.
Property (As Boolean )
Determines whether the control should be deactivated (on macOS) when the parent window is deactivated. The default is True.
The following line is in the Open event and turns AutoDeactivate off.