Print Page | Close Window

The panel size issue?

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=8454
Printed Date: 26 April 2024 at 3:17am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: The panel size issue?
Posted By: grade
Subject: The panel size issue?
Date Posted: 17 October 2007 at 6:01pm
Hello Sir,
 
               I have a probelm for Pane size  for you . I creating some panes for my program, that i want to restore default size  for all panes. But the result is not correct. You can See SkinPane02.jpg and SkinPane03.jpg for
my attach RAR file(SkinpaneSize.rar).
 
First time,I used to CreatePane(.., CRect(0,0,170,120), xtpPaneDockLeft) for Pane on OnCreate Event for CChildFrame for the my program .
 
Second time,  used to FloatPane(..,CRect(0,0,170,120)) for Pane to restore  default size for all pane for the my program .
 
I do'nt want to use SetMinTrackSize() and SetMaxTrackSize() to bridle pane size for all panes.
 
I attach my sample code for you.Do you have some suggestions for me?
Thank you for you help!
 
 


-------------
Grade Wang
Software Engineer



Replies:
Posted By: Oleg
Date Posted: 18 October 2007 at 5:02am
Hi,
 
If you need restore layout, you better call m_paneManager.DestroyAll() and recreate same layout you had in CMainFrame::OnCrate.


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


Posted By: grade
Date Posted: 19 October 2007 at 12:07am
Hello Sir,
                  If i call m_paneManager.DestroyAll() , That all subobjects(m_ViewPane01, m_ViewPane02,m_ViewPane03,m_ViewPane04) to  Destroy for my sampe code. The result is not good.  If I want to destory all panes, but keep All subobjects. How to do?Do you have suggestions for me?
Thank you for you help!
 
 


-------------
Grade Wang
Software Engineer


Posted By: Oleg
Date Posted: 19 October 2007 at 12:49am

Hello,

Try to call m_paneManager.ClosePane(pPane) for each pane before destroy.


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


Posted By: grade
Date Posted: 19 October 2007 at 2:25am
Hello Sir,
 
               This solution is work fine! Thank you for you help!


-------------
Grade Wang
Software Engineer



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