Docking panes not laid out correctly |
Post Reply |
Author | |||||||||||
sbrake
Newbie Joined: 12 November 2007 Status: Offline Points: 5 |
Post Options
Thanks(0)
Posted: 11 January 2008 at 10:11am |
||||||||||
We're trying to layout a component that allows for up to 12 docking panes (usually less) set up in a 3 X 4 grid. We add the docking panes in order from top to bottom, left to right. This works for a most of the variety of layouts that we've come up with, but there are a few where this doesn't work.
Desired layout of panes:
So in this case pane A is created and docked right of the frame itself, pane B created and docked below pane A, pane C created and docked below pane B, and pane D created and docked right of pane A. We send a CRect into CreatePane indicating that D should be twice as tall as A, but we end up with the following layout of panes instead:
Is there a way to indicate that D should be right of both A and B, or another way to correct this so that D is twice as tall but the same width as A and B? |
|||||||||||
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
||||||||||
Hi,
1. Order have to be A, B, D, C
2. Order A, D, B, C
|
|||||||||||
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|||||||||||
sbrake
Newbie Joined: 12 November 2007 Status: Offline Points: 5 |
Post Options
Thanks(0)
|
||||||||||
Changing the code to layout the panes from left to right, top to bottom, instead of top to bottom left to right, fixed the layout described above but does not work for other types of layouts. These layouts can be configured by the user, so I can't give an example of every type of layout, but here's an example layout that no longer works:
Layout by preferences:
Layout displayed:
So is there a way to indicate a pane should be docked next to two panes, or will we need to find a different way to programatically layout the panes other than top to bottom, left to right or left to right, top to bottom? |
|||||||||||
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
||||||||||
Using code you can create ny layout, but you have choose right order of creating. For last layout order is A,B,D,C. |
|||||||||||
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|||||||||||
sbrake
Newbie Joined: 12 November 2007 Status: Offline Points: 5 |
Post Options
Thanks(0)
|
||||||||||
We're working on the algorithm to get the panes laid out correctly, but we've run into a layout that we can't determine the correct order of addition:
----------------------------------------------------------------------------------------------
| A | B | D |
---------------------------------------------------------------------| |
| E | F | |
| ----------------------------------------------- |
| | G |
--------------------------------------------------------------------------------------------- |
We've tried many different orders to layout the panes, but we either end up with A,B, and D on their own row, or A and B in their own row and D completely in the E, F, and G space, or something that isn't even close to correct.
Does anyone have any idea on the correct order to add the panes so we can achieve the desired layout? |
|||||||||||
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |