Home » Developing U++ » UppHub » Docking: How to dock to the entire portion of what remains?
Re: Docking: How to dock to the entire portion of what remains? [message #26814 is a reply to message #26774] |
Mon, 31 May 2010 01:46   |
mrjt
Messages: 705 Registered: March 2007 Location: London
|
Contributor |
|
|
Well, the idea with docking is that you shouldn't have to be worrying about such things, it is up to the user. That is kind of the whole point. If you don't want this flexibility there are simpler ways of doing things without Docking.
And with serialization you don't even have to make the initial/default layout with code, you can set it up in the app and save it.
However, if you care about such things it is supportted. The sizing of widgets is determined by their size hints (min, std, max) and the order in which they are docked can be controlled in two ways:
1- Add the widgets in order (left to right, top to bottom)
2- Use the Dock function that has the position/pos parameter (I don't have code access right now, but it's something like DockWindow::Dock(int align, int pos). Then you can dock them in any order you like.
Other things are taking up my time at the moment so big changes are unlikely but I'm open to suggestions for improvements. Incidentally I added comments to DockWindow.h in my last update to make things a bit clearer (I hope ) so you may want to update from the SVN if you haven't already.
James
|
|
|
Goto Forum:
Current Time: Mon Aug 25 20:22:57 CEST 2025
Total time taken to generate the page: 0.06340 seconds
|