Autofocus a subwindow?

BlitzMax Forums/MaxGUI Module/Autofocus a subwindow?

Grisu(Posted 2006) [#1]
Hi everyone!

In my app I have a main window and several child windows.
I'd like setting the "focus" on the subwindow when it is open, i.e.:

- The user can't switch back to the main app window until he closes the subwindow
- The user can't use the gui menu + all gadgets on the main window while the subwindow is open.

Take the "about window" of Firefox for instance.
Every modern app has this functionality theses days.

Grisu


tonyg(Posted 2006) [#2]
Can you not disablegadget the mainwindow? When you close the subwindow enablegadget and activategadget
mainwindow.
Bit clunky



Grisu(Posted 2006) [#3]
Thanks for the example. Didn't know that you can disable a whole window (and with gadgets) with one command.