Print Page | Close Window

Docking panes not laid out correctly

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Docking Pane
Forum Description: Topics Related to Codejock Docking Pane
URL: http://forum.codejock.com/forum_posts.asp?TID=9283
Printed Date: 12 December 2024 at 4:01pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Docking panes not laid out correctly
Posted By: sbrake
Subject: Docking panes not laid out correctly
Date 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:
A
D
B
C

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:

A
D
B
C

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?



Replies:
Posted By: Oleg
Date Posted: 12 January 2008 at 2:54am
Hi,
 
1. Order have to be A, B, D, C
2. Order A, D, B, C


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: sbrake
Date Posted: 14 January 2008 at 11:32am
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:
A
B
C
D

Layout displayed:
A
B
C
D

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?


Posted By: Oleg
Date Posted: 15 January 2008 at 12:58am

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


Posted By: sbrake
Date Posted: 16 January 2008 at 11:51am
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? 



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net