
I have a tabbed multiple document interface. Users can raft windows. I'm getting complaints that rafted windows always are on top of the main window containing the tabs. Is there a way to allow rafted windows to be behind the main dock site window?
I have a tabbed multiple document interface. Users can raft windows. I'm getting complaints that rafted windows always are on top of the main window containing the tabs. Is there a way to allow rafted windows to be behind the main dock site window?
Hi Alan,
That is correct because the rafting windows have their Window.Owner property set to the root window. This allows them to minimize when the root window is minimized and to remain above it.
If you'd prefer to not have this behavior you can override DockSite.CreateRaftingWindow. If the result of the base method call is a Window, clear its Owner property. I believe that will do the trick.
Thanks, this helps but I have a follow up question..
If I set the owner to false, this allows me to use each window independently and tab to it. However, then I cannot minimize it because the rafted window's title bar has no minimize.
But. if I also set Window.WindowStyle = WindowStyle.SingleBorderWindow, then I get a normal window frame around the rafted window which includes a minimize.
But, now I basically have two title bars on the window. The first is the normal window's title bar and the second is the docking libraries title bar. Is there a way that I can add a "minmiize" button to the rafted window title bar so I can hide the other title bar again and still be able to minimize?
Actually, I think this answers that question
http://www.actiprosoftware.com/community/thread/6154/force-tool-windows-not-to-minimize#22502
But, where do I find the default style for RaftingWindow?
Also, do you have good control, vector art, or some sort to make a good looking minimize button?
[Modified 12 years ago]
Hi Alan,
If you e-mail our support address, we can give you the Docking styles. Actually it looks like you just did. You should be able to find any glyphs for maximize, etc. in there too. I'm not sure offhand if we have one for a tool window minimize button though, but it's just a rectangle so it's easy to make if not.
Excellent, looking into it now. (got a reply)
[Modified 12 years ago]
Please log in to a validated account to post comments.