Sometimes when I run my app I have a special form that opens… I want that form to stay on top of all other windows until the user clicks the close button.
Running on a MAC
Thanks
Sometimes when I run my app I have a special form that opens… I want that form to stay on top of all other windows until the user clicks the close button.
Running on a MAC
Thanks
All other windows for your application. Create the window and show it modal.
Var oWindow as New MyWindow
oWindow.ShowModal() // Other windows will be in the background until you close this one.
// Code will continue after the window is closed.
On Mac you have the option of having sheet windows. They open in front of a single document window and block only that window until they are closed.
Var oWindow as New MyWindow
oWindow.ShowModalWithin( TheWindowToBlock ) // TheWindowToBlock is blocked until this window is closed.
// Code will continue after the window is closed.
The window also needs to be of type “Modal”
Trying the offered solutions now… I’m tring to modal one “Form” over my Main form until the user clicks on the “Close Form” button
No luck yet. When my “Notice Form” appears in front of my “Main Form” like its supposed to, the user can click on the “Main form” and the “Notice Form” is sent to the background. I would like the “Notice Form” to stay on top of the “Main Form” until the user reviews it and clicks on the the close button on the “Notice Form”.
Hope this helps… Thanks
ok… setting the “Notice Form” Frame type to “Global Floating Window” seems to work…
will continue to check…
Don’t use global floating window. Set it to Modal. That’s what it’s for.
Thanks
Got it… Set my “Notice Form” Frame type to “Movable Modal” and used the “.ShowModal” to show the form…
You could also try a sheet window
Yes, a Sheet window only works on macOS and works with ShowModalWithin I detailed above. On Windows it is a Modal Dialog.