GLBasic forum

Codesnippets => DD-GUI => Topic started by: MrTAToad on 2010-Oct-15

Title: Multiple windows
Post by: MrTAToad on 2010-Oct-15
Whilst it is possible to have multiple windows, its not possible to bring one window in front of the other (or generally activate it) until the front-most window is destroyed.

It would be nice to be able to bring a non-active window to the front, and activate it...
Title: Re: Multiple windows
Post by: Kitty Hello on 2010-Oct-18
yikes! How would you do the message handling then?

You can do that by swapping the bottom 2 elements of the ddgui_dialogs[]?? array - forgot the real name.
Title: Re: Multiple windows
Post by: MrTAToad on 2010-Oct-18
Message handling would only be done for the topmost (active window).

Title: Re: Multiple windows
Post by: Kitty Hello on 2010-Oct-19
You can make a "DDgui_BringWindowToTop" function where you swap the stack contents. But then the DDgui_popdialog acts on the topmost dialog. Usually I just recreate a new dialog when I want something on top. I can't really think of an application that requires swapping them.
Would you want to get notified about the swap, so the user can sort of "multitask" with them?
Title: Re: Multiple windows
Post by: MrTAToad on 2010-Oct-19
Yes, some sort of notification would be nice