Keeping Focus Within a Small Window

BlitzMax Forums/BlitzMax Beginners Area/Keeping Focus Within a Small Window

Gabriel(Posted 2005) [#1]
You know how some of the system requesters and filerequesters and all that act? I want to emulate that.

I want to open a mini-window over the top of the main window and then not let the user do anything else with the main window until they click a button on the mini window. I can stick ActivateWindow() on an timer, but that's not really what I'm after.


CS_TBL(Posted 2005) [#2]
If your mini-window is active then only check on the events that belong to that mini-window, and don't check the main events..


Gabriel(Posted 2005) [#3]
Yep, but the user can still interfere with gadgets like text boxes and can still click buttons, even if it doesn't register an immediate event. I was wondering if there was a way to totally lock down the large main window, as happens with a file requester.


CS_TBL(Posted 2005) [#4]
DisableGadget thosetextboxes_'n_stuff


Gabriel(Posted 2005) [#5]
I never actually spotted the DisableGadget command so thanks for that. In case anyone else is wondering, you can just disable the main window and everything parented to it will be disabled too, so it's very easy to do.