![]() |
"Pair-docking" design question |
Post Reply ![]() |
Author | |
znakeeye ![]() Senior Member ![]() ![]() Joined: 26 July 2006 Status: Offline Points: 1672 |
![]() ![]() ![]() ![]() ![]() 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!
|
|
![]() |
|
SuperMario ![]() Admin Group ![]() ![]() Joined: 14 February 2004 Status: Offline Points: 18057 |
![]() ![]() ![]() ![]() ![]() |
Maybe you should look into Min\Max for this. See the samples.
|
|
![]() |
|
znakeeye ![]() Senior Member ![]() ![]() Joined: 26 July 2006 Status: Offline Points: 1672 |
![]() ![]() ![]() ![]() ![]() |
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?
|
|
![]() |
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 |