Currently Active Window

BlitzMax Forums/MaxGUI Module/Currently Active Window

William Drescher(Posted 2010) [#1]
I'm not exactly clear on how to get the active window. I have a program with multiple project windows and I need to know exactly which one is active so when the Save command is hit on the menu, it will save that particular window.


plash(Posted 2010) [#2]
I don't know if there's a function for this, but you could cycle all your windows, checking them individually.


SebHoll(Posted 2010) [#3]
Not tested, but something like...
Local tmpGadget:TGadget = ActiveGadget()
While tmpGadget And GadgetClass(tmpGadget) <> GADGET_WINDOW
tmpGadget = GadgetGroup(tmpGadget)
Wend
...might work?