Handle pane resize |
Post Reply |
Author | |
znakeeye
Senior Member Joined: 26 July 2006 Status: Offline Points: 1672 |
Post Options
Thanks(0)
Posted: 09 February 2008 at 8:28pm |
I have this layout: | Pane1
| --------
| Pane2
When this coupled pane is resized horizontally, I want Pane1 and Pane2 to resize vertically too.
Basically Pane1 is responsible for resizing Pane2! How do I accomplish that?
|
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi,
Not really sure how it should work. You can patch our sources and change CXTPDockingPaneSplitterWnd::OnLButtonDown method to implement what you need.
For next release we will add notification when user start/stop resize splitter.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
znakeeye
Senior Member Joined: 26 July 2006 Status: Offline Points: 1672 |
Post Options
Thanks(0)
|
That is what I'm looking for. Can't wait for the next release :)
|
|
adrien
Senior Member Joined: 30 April 2007 Location: New Zealand Status: Offline Points: 449 |
Post Options
Thanks(0)
|
I Need this too, since I am putting forms inside a pane, and need it to know when it is resized by way of moving the splitter rather than only when the whole frame is resized.
Can't you just call SetWindowPos on the panes when you resize the split?
|
|
adrien
Senior Member Joined: 30 April 2007 Location: New Zealand Status: Offline Points: 449 |
Post Options
Thanks(0)
|
Actually it looks like certain resizing takes place,
The pane's window is resized if the splitter makes it bigger, just not if it gets smaller.
So this looks like a bug to me.
|
|
adrien
Senior Member Joined: 30 April 2007 Location: New Zealand Status: Offline Points: 449 |
Post Options
Thanks(0)
|
I have to take all that back.
It does resize on reduction as well, my message map macro was disabled when I tested this. Sorry!
|
|
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 |