Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Docking Pane
  New Posts New Posts RSS Feed - Alpha window not placed correctly!
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Alpha window not placed correctly!

 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: Alpha window not placed correctly!
    Posted: 22 May 2008 at 10:38am
XTP 12.0, ribbon MDI.
 
I detach my pane, and then re-attach it. I can then see this to the left. What could be causing this? I don't see it in your samples.
 
 
I do call SetMinTrackSize(CSize(200, 200)) and SetMinTrackSize(CSize(600, 400)). Also, when I attach the pane it gets the correct size - 1,5 cm wider than the alpha window...
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: 22 May 2008 at 11:04am
Hi,
 
So you see Alpha window after you drop pane ? :-[ ]
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: 22 May 2008 at 2:06pm
No, I see it just before I drop/attach it. But the window is, as shown above, too narrow!
 
It's like XTP thinks the final pane width would be 200 px, when it should be 210 px...
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: 22 May 2008 at 3:11pm

Hi,

Need to know your exactly layout to find reason. Maybe you can serialize it to xml and assign ? think HideClient is reason.. :( try temporary comment and check it.

 
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: 26 May 2008 at 10:39am
HideClient is the reason. How do I solve it?
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: 26 May 2008 at 3:10pm
Hi,
 
Please add lines
 CXTPDockingPaneLayout l(&m_paneManager);
 m_paneManager.GetLayout(&l);
 l.SaveToFile(_T("C:\\Layout.xml"), "Layout");
and attach c:\Layout to check what do you have.
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: 26 May 2008 at 7:58pm

<?xml version="1.0" encoding="UTF-8"?>

<DockingPaneLayouts CompactMode="1">

<Layout>

<Summary Panes="8" TopContainer="4" Client="7"/>

<Pane-1 Type="0" DockingCX="240" Title="Left" ID="202" Options="36" DockingHolder="5" LastHolder="5" MinTrackX="240" MaxTrackX="240" MaxTrackY="0"/>

<Pane-2 Type="0" DockingCX="800" Title="Main" ID="314" Options="38" DockingHolder="6" LastHolder="6"/>

<Pane-3 Type="0" DockingCX="800" DockingCY="600" Title="Problematic pane" ID="313" Options="2" DockingHolder="8" LastHolder="8" MinTrackX="320" MinTrackY="240"/>

<Pane-4 Type="2" Horiz="1" Panes="4" Pane-1="5" Pane-2="6" Pane-3="7" Pane-4="8"/>

<Pane-5 Type="1" DockingCX="240" Panes="1" Selected="1" Pane-1="1"/>

<Pane-6 Type="1" DockingCX="800" Panes="1" Selected="2" Pane-1="2"/>

<Pane-7 Type="4"/>

<Pane-8 Type="1" DockingCX="800" DockingCY="600" Panes="1" Selected="3" Pane-1="3"/>

</Layout>

</DockingPaneLayouts>

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: 27 May 2008 at 1:11am
Hi,
It works for me :-(
 
I loaded this layout, and added
 
 m_paneManager.HideClient(TRUE);
 m_paneManager.SetAlphaDockingContext(TRUE);
 
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.203 seconds.