![]() |
Auto-shrink floating panes |
Post Reply
|
| Author | |
znakeeye
Senior Member
Joined: 26 July 2006 Status: Offline Points: 1672 |
Post Options
Thanks(0)
Quote Reply
Topic: Auto-shrink floating panesPosted: 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.
|
|
![]() |
|
znakeeye
Senior Member
Joined: 26 July 2006 Status: Offline Points: 1672 |
Post Options
Thanks(0)
Quote Reply
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.
|
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 31 March 2008 at 1:09am |
|
Hi,
Changed to virtual for 12.0 release.
|
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
znakeeye
Senior Member
Joined: 26 July 2006 Status: Offline Points: 1672 |
Post Options
Thanks(0)
Quote Reply
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
. |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
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 |
|
![]() |
|
znakeeye
Senior Member
Joined: 26 July 2006 Status: Offline Points: 1672 |
Post Options
Thanks(0)
Quote Reply
Posted: 01 April 2008 at 3:35am |
|
Please do! This bug is very important for me. Thanks!
|
|
![]() |
|
znakeeye
Senior Member
Joined: 26 July 2006 Status: Offline Points: 1672 |
Post Options
Thanks(0)
Quote Reply
Posted: 23 April 2008 at 6:58am |
|
Was this fixed in v12? Haven't had time to try out the beta yet.
|
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 24 April 2008 at 1:04am |
|
Hello,
Yes, it was changed.
|
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
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 |