Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Docking Pane
  New Posts New Posts RSS Feed - Auto-shrink floating panes
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Auto-shrink floating panes

 Post Reply Post Reply
Author
Message
znakeeye View Drop Down
Senior Member
Senior Member
Avatar

Joined: 26 July 2006
Status: Offline
Points: 1672
Post Options Post Options   Thanks (0) Thanks(0)   Quote znakeeye Quote  Post ReplyReply Direct Link To This Post Topic: Auto-shrink floating panes
    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.
Back to Top
znakeeye View Drop Down
Senior Member
Senior Member
Avatar

Joined: 26 July 2006
Status: Offline
Points: 1672
Post Options Post Options   Thanks (0) Thanks(0)   Quote znakeeye Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 31 March 2008 at 1:09am
Hi,
 
Changed to virtual for 12.0 release.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
znakeeye View Drop Down
Senior Member
Senior Member
Avatar

Joined: 26 July 2006
Status: Offline
Points: 1672
Post Options Post Options   Thanks (0) Thanks(0)   Quote znakeeye Quote  Post ReplyReply Direct Link To This Post 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 .
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
znakeeye View Drop Down
Senior Member
Senior Member
Avatar

Joined: 26 July 2006
Status: Offline
Points: 1672
Post Options Post Options   Thanks (0) Thanks(0)   Quote znakeeye Quote  Post ReplyReply Direct Link To This Post Posted: 01 April 2008 at 3:35am
Please do! This bug is very important for me. Thanks!
Back to Top
znakeeye View Drop Down
Senior Member
Senior Member
Avatar

Joined: 26 July 2006
Status: Offline
Points: 1672
Post Options Post Options   Thanks (0) Thanks(0)   Quote znakeeye Quote  Post ReplyReply Direct Link To This Post Posted: 23 April 2008 at 6:58am
Was this fixed in v12? Haven't had time to try out the beta yet.
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 24 April 2008 at 1:04am
Hello,
Yes, it was changed.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.139 seconds.