MacOs Sequoia Laz 4.1 FPC 2.3.3
Scenario: Main form contains active component eg TTimer. Button on main form runs a process but first requires user input of two dates.
I created a small subform, added two DateTimePickers, user can select date. It would be desirable to prevent user selecting items on main form until date selection completed along with secondary process.
If I call subform with .ShowModal main form timer process is stopped.
If I call subform with .Show main form timer process continuers but main form can be selected by user
Setting FormStyle to "StayOnTop" looked like a solution but it is not. Two things, it still allows access to main form and the DateTimePicker calendar is hidden under the subform. This may be by design but I would have expected that the form stays on top but behaves in the standard way ie any clicks on it are still visible.
I would like suggestions as how to prevent user interaction with main form while subform is in operation. Secondly is it right that calendar dialog on DateTimePicker is behind form when StayOnTop is the chosen form style.