Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Some docking panes/layout
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Some docking panes/layout

 Post Reply Post Reply
Author
Message
simus View Drop Down
Groupie
Groupie


Joined: 08 July 2005
Status: Offline
Points: 43
Post Options Post Options   Thanks (0) Thanks(0)   Quote simus Quote  Post ReplyReply Direct Link To This Post Topic: Some docking panes/layout
    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

Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
simus View Drop Down
Groupie
Groupie


Joined: 08 July 2005
Status: Offline
Points: 43
Post Options Post Options   Thanks (0) Thanks(0)   Quote simus Quote  Post ReplyReply Direct Link To This Post 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

Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 11 November 2005 at 2:48am

Hi,

Yes, something like this :)

Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.047 seconds.