Print Page | Close Window

Floating docking pane size

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=10472
Printed Date: 18 July 2025 at 12:11am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Floating docking pane size
Posted By: znakeeye
Subject: Floating docking pane size
Date Posted: 03 May 2008 at 9:17am
Recall this: http://forum.codejock.com/forum_posts.asp?TID=10005 - http://forum.codejock.com/forum_posts.asp?TID=10005
 
It works a bit better in v12, but how do I size my pane to 300x200 on creation? That is, the first time it is being detached to floating mode, the drag frame should be 300x200!



Replies:
Posted By: znakeeye
Date Posted: 03 May 2008 at 10:01am
Possible problem cause:
 
XTPDockingPaneContext.cpp(409) is only reached the second time the pane is being detached.


Posted By: Oleg
Date Posted: 05 May 2008 at 1:15am
Hi,
Yes, in first floating it used current docking size.


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


Posted By: znakeeye
Date Posted: 05 May 2008 at 4:40am
Yes, but this is not the correct behavior. See VS 2008.
 
How do I get that behavior? I want to set the initial floating-size!


Posted By: Oleg
Date Posted: 05 May 2008 at 4:56am

Hello,

How I can see difference in vc2008 ?


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


Posted By: znakeeye
Date Posted: 05 May 2008 at 6:19am
Just detach any window after resetting the layout. The floating panes will not have the same size as the attached ones!


Posted By: znakeeye
Date Posted: 07 May 2008 at 5:58am
I think the proper implementation would be this:
 
pPane = CreatePane( ... , CRect(attachedSize), CRect(detachedSize), ...);
 
or
 
pPane = CreatePane( ... , CRect(attachedSize));
pPane->SetInitialFloatingSize(CSize(detachedSize));


Posted By: znakeeye
Date Posted: 08 May 2008 at 2:35am
Or even better
 
Send a message to client window to ask for the wanted size:
pClientWnd->SendMessage(WM_XTP_FLOATING_PANE_RESIZE, ..., ...);


Posted By: znakeeye
Date Posted: 20 May 2008 at 3:20pm
Are you considering something like this for 12.0.1?


Posted By: Oleg
Date Posted: 21 May 2008 at 1:20am
Hello,
 
We changed it to use initial size passed to CreatePane.


-------------
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