Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Docking Pane
  New Posts New Posts RSS Feed - Docking panes not laid out correctly
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Docking panes not laid out correctly

 Post Reply Post Reply
Author
Message
sbrake View Drop Down
Newbie
Newbie


Joined: 12 November 2007
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote sbrake Quote  Post ReplyReply Direct Link To This Post Topic: Docking panes not laid out correctly
    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?
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
sbrake View Drop Down
Newbie
Newbie


Joined: 12 November 2007
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote sbrake Quote  Post ReplyReply Direct Link To This Post 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?
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
sbrake View Drop Down
Newbie
Newbie


Joined: 12 November 2007
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote sbrake Quote  Post ReplyReply Direct Link To This Post 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? 
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.156 seconds.