Print Page | Close Window

Handle pane resize

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=9545
Printed Date: 13 May 2025 at 5:36pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Handle pane resize
Posted By: znakeeye
Subject: Handle pane resize
Date 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?



Replies:
Posted By: Oleg
Date Posted: 17 February 2008 at 4:29am
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


Posted By: znakeeye
Date Posted: 17 February 2008 at 8:50am
That is what I'm looking for. Can't wait for the next release :)


Posted By: adrien
Date Posted: 03 March 2008 at 9:04pm
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?


Posted By: adrien
Date Posted: 03 March 2008 at 9:39pm
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.


Posted By: adrien
Date Posted: 03 March 2008 at 9:53pm
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!



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