Print Page | Close Window

"Pair-docking" design question

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=11547
Printed Date: 23 November 2024 at 6:24am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: "Pair-docking" design question
Posted By: znakeeye
Subject: "Pair-docking" design question
Date 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!



Replies:
Posted By: SuperMario
Date Posted: 13 August 2008 at 11:53am
Maybe you should look into Min\Max for this.  See the samples.


Posted By: znakeeye
Date 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?



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