help with showgadget()
BlitzMax Forums/BlitzMax Beginners Area/help with showgadget()
| ||
hey, I have a windowed app that brings up a gadget. This works fine, but if you click on the background window the gadget disappears behind it. Although it is easy to just click on the gadget bar to bring it back again, is there any way to stop it from disappearing when you click on the background? I could disable the mouse but then I couldn't click on the gadget to activate it. |
| ||
Hi, you mean like this ? Strict Import MaxGui.Drivers Local window:TGadget = CreateWindow( "Window", 200, 200, 420, 340, Null) Local button:TGadget = CreateButton("Show", 20, 20, 60, 30, window) Local sub_window:TGadget = CreateWindow( "Sub window", 220, 220, 200, 180, window) HideGadget(sub_window) Repeat WaitEvent() Select EventID() Case EVENT_APPTERMINATE, EVENT_WINDOWCLOSE Select EventSource() Case window End Case sub_window HideGadget(sub_window) EndSelect Case EVENT_GADGETACTION ShowGadget(sub_window) End Select Forever -Henri |
| ||
I think he means a 'always on top' window. At the moment I have no access to my computer, but a search with 'always on top' should give some results. |