Author Topic: Multiple windows  (Read 3020 times)

MrTAToad

  • Guest
Multiple windows
« 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...

Offline Kitty Hello

  • code monkey
  • Administrator
  • Prof. Inline
  • *******
  • Posts: 10665
  • here on my island the sea says 'hello'
    • View Profile
    • http://www.glbasic.com
Re: Multiple windows
« Reply #1 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.

MrTAToad

  • Guest
Re: Multiple windows
« Reply #2 on: 2010-Oct-18 »
Message handling would only be done for the topmost (active window).


Offline Kitty Hello

  • code monkey
  • Administrator
  • Prof. Inline
  • *******
  • Posts: 10665
  • here on my island the sea says 'hello'
    • View Profile
    • http://www.glbasic.com
Re: Multiple windows
« Reply #3 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?

MrTAToad

  • Guest
Re: Multiple windows
« Reply #4 on: 2010-Oct-19 »
Yes, some sort of notification would be nice