View Single Post
  #1  
Unread 04-07-2009, 09:12 PM
Zonx's Avatar
Zonx Zonx is offline
A Green Troll
This person is a EQ2Map developer.
Featured
 
Join Date: Dec 2004
Server: Blackburrow
Posts: 2,221
Default Suggestion ModeStack

Since the discussion about Advanced mode for the Raid window... I've been thinking of how to add something like this for all windows. What I have in mind is to add a menu to WindowOptions, similar to the Frame And Titlebar menu, that uses a stack of pages from the calling window as its DataSource. Selecting an option shows that page and hides all the others, much like a TabbedPane does.

I think all that's needed from a UI standpoint is to add an attribute to TabbedPane... something like ModeSwitch="true".

From a programming standpoint, the open WindowSettings function would need to inspect the top level of the calling window tree for a TabbedPane with this attribute. If found, page names from that TabbedPane would be passed into WindowSettings as options for the Mode menu.

What this would give us is a saveable "Mode" setting that displays the corresponding page in the calling window and hides all others in that page stack. This also results in a Show event on the corresponding mode page, which would allow us to script layout changes on each mode change.
Reply With Quote