Home » Developing U++ » UppHub » Docking: BUG + FEATURE: Disable Close completely
Re: Title() Bug [message #26660 is a reply to message #26643] |
Tue, 18 May 2010 12:50  |
mrjt
Messages: 705 Registered: March 2007 Location: London
|
Contributor |
|
|
Hmmm. The way you've got your GUI set-up doesn't isn't really fit how the Docking package was designed. The idea is that you use it to dock windows around a client area showing something useful.
Some solutions occur to me:
- Why not put one of your DockableCtrls into the client area? You might have to Deregister it first (maybe not though) and then just add it with SizePos.
- If you need the user to be able to drag into/out of the client area, I think you could do by inheriting from DockWindow and overloading ContainerDragStart/Move/End. I'm sure there would be complications though.
- You could use SetFrameSize to fill the clioent area. The main problem here is working out which frame(s) to expand (which is opartly why I didn't implement it when I looked at the problem yesterday).
Regarding your suggested changes:
DockAllowed changes: I've added these, though modified the implementation slightly. I've also added them to DockWindow.
Animation change: I've added the extra options to DockConfig, so the user can now turn the different animations on/off themselves.
TabDockGroup: I can see you point, but there are two problems:
- TabDockGroup is used by a menu in DockMenu
- What if the programmer wants to dock a group but still respect the DockAllow settings?
To solve this I've added 2 new functions that do what you want: ForceDockGroup and ForceTabDockGroup.
And if you are trying to save/restore states I suggest you use Save/LoadLayout, it should work much better.
TabDragged: This is more complicated. I can see where you're coming from but doing this would introduce an inconsistency to the interface: The user would not be able to drag individual tabs out, but they could drag the whole container (including tabs that couldn't be put back).
Besides that I don't think I like the behaviour. If what you want is to lock some DockableCtrls into particular positions that could be better accomplished in another way, maybe by a setting in DockableCtrl?
I've committed my changes to the SVN and also left you a little present in Docking.h. Hope it helps
[Updated on: Tue, 18 May 2010 12:54] Report message to a moderator
|
|
|
 |
|
Docking: BUG + FEATURE: Disable Close completely
By: kohait00 on Fri, 26 February 2010 14:49
|
 |
|
Re: Docking: BUG + FEATURE: Disable Close completely
By: kohait00 on Fri, 26 February 2010 15:17
|
 |
|
Re: Docking: BUG + FEATURE: Disable Close completely
By: kohait00 on Tue, 02 March 2010 14:27
|
 |
|
Re: Docking: BUG + FEATURE: Disable Close completely
By: kohait00 on Tue, 02 March 2010 14:42
|
 |
|
Re: Docking: BUG + FEATURE: Disable Close completely
By: kohait00 on Tue, 02 March 2010 15:04
|
 |
|
Re: Docking: BUG + FEATURE: Disable Close completely
By: mrjt on Wed, 03 March 2010 18:29
|
 |
|
Re: Docking: BUG + FEATURE: Disable Close completely
By: kohait00 on Wed, 03 March 2010 22:16
|
 |
|
Re: Docking: BUG + FEATURE: Disable Close completely
By: mrjt on Thu, 04 March 2010 15:37
|
 |
|
Re: Docking: BUG + FEATURE: Disable Close completely
By: kohait00 on Thu, 04 March 2010 20:02
|
 |
|
another thing
By: kohait00 on Fri, 05 March 2010 09:34
|
 |
|
Re: another thing
By: mrjt on Tue, 09 March 2010 11:42
|
 |
|
Re: another thing
By: kohait00 on Fri, 09 April 2010 09:47
|
 |
|
Re: another thing
By: kohait00 on Fri, 09 April 2010 15:00
|
 |
|
Re: another thing
|
 |
|
Re: another thing
By: mrjt on Wed, 05 May 2010 16:01
|
 |
|
Re: another thing
|
 |
|
Title() Bug
|
 |
|
Re: Title() Bug
By: mrjt on Mon, 17 May 2010 13:35
|
 |
|
Re: Title() Bug
|
 |
|
Re: Title() Bug
|
 |
|
Re: Title() Bug
By: mrjt on Tue, 18 May 2010 12:50
|
Goto Forum:
Current Time: Mon Aug 25 17:23:50 CEST 2025
Total time taken to generate the page: 0.06088 seconds
|