Print Page | Close Window

Alpha window not placed correctly!

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=10745
Printed Date: 18 May 2024 at 6:38pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Alpha window not placed correctly!
Posted By: znakeeye
Subject: Alpha window not placed correctly!
Date 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...



Replies:
Posted By: Oleg
Date Posted: 22 May 2008 at 11:04am
Hi,
 
So you see Alpha window after you drop pane ? :-[ ]


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


Posted By: znakeeye
Date 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...


Posted By: Oleg
Date 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


Posted By: znakeeye
Date Posted: 26 May 2008 at 10:39am
HideClient is the reason. How do I solve it?


Posted By: Oleg
Date 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


Posted By: znakeeye
Date 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>



Posted By: Oleg
Date 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



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