Print Page | Close Window

Problems loading pane layout

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=4319
Printed Date: 12 December 2024 at 5:36am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Problems loading pane layout
Posted By: bsharifi
Subject: Problems loading pane layout
Date 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 );
  }




Replies:
Posted By: Oleg
Date Posted: 01 June 2006 at 8:50am

Hi,

Code looks ok... problem somewhere else.



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