Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Docking Pane
  New Posts New Posts RSS Feed - "Pair-docking" design question
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

"Pair-docking" design question

 Post Reply Post Reply
Author
Message
znakeeye View Drop Down
Senior Member
Senior Member
Avatar

Joined: 26 July 2006
Status: Offline
Points: 1672
Post Options Post Options   Thanks (0) Thanks(0)   Quote znakeeye Quote  Post ReplyReply Direct Link To This Post Topic: "Pair-docking" design question
    Posted: 23 July 2008 at 3:20am
I have this pane layout (on one side):
___
| A |
|---|
| B |
-----
 
The two panes are sometimes attached to each other. When this is the case (like above), I want pane A to get resized vertically as pane B is resized horizontally. Basically, I want pane A to have certain proportions.
 
How do I accomplish this in a "good" way? I believe that "B" should derive CXTPDockingPane and somehow notify "A" when a resize occurs. Which functions should I override?
 
Any help is greatly appreciated!
Back to Top
SuperMario View Drop Down
Admin Group
Admin Group
Avatar

Joined: 14 February 2004
Status: Offline
Points: 18057
Post Options Post Options   Thanks (0) Thanks(0)   Quote SuperMario Quote  Post ReplyReply Direct Link To This Post Posted: 13 August 2008 at 11:53am
Maybe you should look into Min\Max for this.  See the samples.
Back to Top
znakeeye View Drop Down
Senior Member
Senior Member
Avatar

Joined: 26 July 2006
Status: Offline
Points: 1672
Post Options Post Options   Thanks (0) Thanks(0)   Quote znakeeye Quote  Post ReplyReply Direct Link To This Post Posted: 17 August 2008 at 2:06pm
Seriously, how would you "link" two panes? Whenever the "splitter A" is moved, its adjacent (linked) "splitter B" should follow.
 
Would be quite cool in some scenarios. Any ideas?
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.172 seconds.