Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Docking Pane
  New Posts New Posts RSS Feed - SetFloatingFrameCaption flaw
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

SetFloatingFrameCaption flaw

 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: SetFloatingFrameCaption flaw
    Posted: 02 September 2009 at 6:06am

SetFloatingFrameCaption sets the caption for all mini-windows. It makes sense to have different captions for different mini-windows. E.g.

Two panes are glued together:
A|B
 
Another two panes are glued together:
C|D
xtpPaneActionDocked, xtpPaneActionFloated and xtpPaneActionClosed are handled to keep this configuration. Now, if both A|B and C|D are floating (still glued) the caption should not be the same for these two. Hence, the need for a per-window-setting instead of the global one.
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: 02 September 2009 at 7:09am
Hi,
 
How do you think its possible to make per-window ?  you need specify what caption to show for A|B, A|C, A|D, C|D, etc.
 
if you have only single Pane, title will be match its Title.
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: 03 September 2009 at 3:28am
Yes, as long as only one pane is floating, it works.
 
if (pAction->action == xtpPaneActionFloated)
     m_paneManager.SetFloatingFrameCaption(pOtherPane->GetTitle());
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: 03 September 2009 at 6:23am

Hi,

 
SetFloatingFrameCaption only used when 2 and more panes are docked and floated together, otherwise Title of single pane is used.
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: 06 September 2009 at 5:02pm

Thanks. I understand the logic. It's just that I wish panes could be grouped side by side, similar to a CSplitterWnd with CViews...

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.156 seconds.