Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Docking Pane
  New Posts New Posts RSS Feed - Problems loading pane layout
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Problems loading pane layout

 Post Reply Post Reply
Author
Message
bsharifi View Drop Down
Newbie
Newbie


Joined: 09 December 2004
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote bsharifi Quote  Post ReplyReply Direct Link To This Post Topic: Problems loading pane layout
    Posted: 31 May 2006 at 6:50pm

The following is some code that demonstrates how we are saving and loading the pane layout to a file.  We are running into an issue while loading.  The panes load and appear in the correct locations.  However, if we save a layout that has all the panes floating, and then load, the application does not respond to left mouse clicks except on the docking pane manager's frame window (which is inside an MDI Child Frame).  All other MDI child frames don't respond to mouse clicks until a mouse click occurs within the docking pane manager frame window.  Can you please see whether there is something wrong with the following code?

Thank you,
Beaux

  //
  // Save code.
  //
  CString strLayout;
  CXTPPropExchangeXMLNode px( FALSE, 0, STR_XML_SETUP );
  if (px.OnBeforeExchange())
  {
    CXTPPropExchangeSection pxDockingPane( px.GetSection(STR_XML_DOCKING_LAYOUT) );
    Imp()->paneManager.DoPropExchange( &pxDockingPane );
    strLayout = px.GetXML();
    // Save strLayout to file
  }

  //
  // Load code.
  //
  CString strLayout
  CXTPPropExchangeXMLNode px( TRUE, 0, STR_XML_SETUP );
  if (px.LoadFromString( strLayout ))
  {
    px.SetLoading( TRUE );
    CXTPPropExchangeSection pxDockingPane( px.GetSection(STR_XML_DOCKING_LAYOUT) );
    Imp()->paneManager.DoPropExchange( &pxDockingPane );
  }

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: 01 June 2006 at 8:50am

Hi,

Code looks ok... problem somewhere else.

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.174 seconds.