Print Page | Close Window

Some docking panes/layout

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=3195
Printed Date: 20 January 2025 at 8:31pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Some docking panes/layout
Posted By: simus
Subject: Some docking panes/layout
Date Posted: 10 November 2005 at 3:45am

Hi,

At the start of my application I create 9 panes.

I have 3 mode in the application so for each mode I have a layout.

The problem is that loading layout seems to destroy some of the panes I have manually created. Under some circumstances (which ones?)

How can I prevent that the loading/use of a layout destroy the panes I have created?

Or what is the correct way to use the layouts? If I use layouts do I need to create the panes first?

Thanks for your help




Replies:
Posted By: Oleg
Date Posted: 10 November 2005 at 5:21am

Dynamic panes belong only to layout where you create them. You must manually create them for another layouts also (after switch for example).



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


Posted By: simus
Date Posted: 10 November 2005 at 6:07am

Hi thanks for the quick answer,

So am I right with the following algorithm?

Function CreatePanes

  if !paneManager.FindPane(ID_1) then CreatePane(ID_1)

  if !paneManager.FindPane(ID_2) then CreatePane(ID_2)

  if !paneManager.FindPane(ID_3) then CreatePane(ID_3)

End function

 

And at the end of the CMainFrame::OnCreate and the end of the switch of a layout

  m_myLayoutToUse->Load(myKeyLayoutToUse) ;

  GetDockingPaneManager()->SetLayout(m_myLayoutToUse);

  CreatePanes();

Thanks a lot



Posted By: Oleg
Date Posted: 11 November 2005 at 2:48am

Hi,

Yes, something like this :)



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