![]() |
Floating docking pane size |
Post Reply
|
| Author | |
znakeeye
Senior Member
Joined: 26 July 2006 Status: Offline Points: 1672 |
Post Options
Thanks(0)
Quote Reply
Topic: Floating docking pane sizePosted: 03 May 2008 at 9:17am |
|
Recall this: 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!
|
|
![]() |
|
znakeeye
Senior Member
Joined: 26 July 2006 Status: Offline Points: 1672 |
Post Options
Thanks(0)
Quote Reply
Posted: 03 May 2008 at 10:01am |
|
Possible problem cause:
XTPDockingPaneContext.cpp(409) is only reached the second time the pane is being detached.
|
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 05 May 2008 at 1:15am |
|
Hi,
Yes, in first floating it used current docking size.
|
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
znakeeye
Senior Member
Joined: 26 July 2006 Status: Offline Points: 1672 |
Post Options
Thanks(0)
Quote Reply
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!
|
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 05 May 2008 at 4:56am |
|
Hello, How I can see difference in vc2008 ?
|
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
znakeeye
Senior Member
Joined: 26 July 2006 Status: Offline Points: 1672 |
Post Options
Thanks(0)
Quote Reply
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!
|
|
![]() |
|
znakeeye
Senior Member
Joined: 26 July 2006 Status: Offline Points: 1672 |
Post Options
Thanks(0)
Quote Reply
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));
|
|
![]() |
|
znakeeye
Senior Member
Joined: 26 July 2006 Status: Offline Points: 1672 |
Post Options
Thanks(0)
Quote Reply
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, ..., ...);
|
|
![]() |
|
znakeeye
Senior Member
Joined: 26 July 2006 Status: Offline Points: 1672 |
Post Options
Thanks(0)
Quote Reply
Posted: 20 May 2008 at 3:20pm |
|
Are you considering something like this for 12.0.1?
|
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 21 May 2008 at 1:20am |
|
Hello,
We changed it to use initial size passed to CreatePane.
|
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
Post Reply
|
|
|
Tweet
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |