Print Page | Close Window

Auto-shrink floating panes

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=10005
Printed Date: 28 April 2024 at 9:24pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Auto-shrink floating panes
Posted By: znakeeye
Subject: Auto-shrink floating panes
Date Posted: 30 March 2008 at 12:15pm
When making panes floating, it is often desirable to change their size to "best fit". You seldom want a floating pane to occupy half of the screen.
 
This is a missing feature, and it seems quite hard to override this behavior by inheriting from CXTPDockingPane*. Can you please add this functionality in 12.0?
 
Whenever a pane is about the get sized, it should do something like:
 
GetChild()->SendMessage(WM_XTP_BESTPANESIZE, bIsFloating, &rect);
// Continue sizing pane...
 
Also, do not forget the drag frame! It should also use this "best fit" rectangle when the pane is floating.



Replies:
Posted By: znakeeye
Date Posted: 30 March 2008 at 1:51pm
CXTPDockingPaneMiniWnd::Init(CXTPDockingPaneBase* pPane, CRect rc) should be virtual!
 
In that case, you can override Init and fiddle with the rc-parameter.


Posted By: Oleg
Date Posted: 31 March 2008 at 1:09am
Hi,
 
Changed to virtual for 12.0 release.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: znakeeye
Date Posted: 31 March 2008 at 2:45am

Good, but I found it to be tricky to get the desired behavior anyway (just recompiled with this change). Let me clarify the issue:

VS 2008. "Properties" pane is attached. If I drag the pane to "floating mode", the floating window size is not the same as when attached! The floating window should always remember its "ideal" size. All your docking pane samples suffer from this.
 
I believe we have a "behavior bug" here .


Posted By: Oleg
Date Posted: 01 April 2008 at 1:51am
Hm.. Think you are right. We will check if its possible to change it for 12.0.

-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: znakeeye
Date Posted: 01 April 2008 at 3:35am
Please do! This bug is very important for me. Thanks!


Posted By: znakeeye
Date Posted: 23 April 2008 at 6:58am
Was this fixed in v12? Haven't had time to try out the beta yet.


Posted By: Oleg
Date Posted: 24 April 2008 at 1:04am
Hello,
Yes, it was changed.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS



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