docking pane layout to XML does not work! |
Post Reply |
Author | |
spike
Groupie Joined: 13 May 2003 Location: United States Status: Offline Points: 48 |
Post Options
Thanks(0)
Posted: 21 June 2005 at 8:51am |
I am trying to save docking pane layouts to an xml file, this used to work in the 9.50 version of the toolkit. With the latest version 9.601 this no longer works. It only saves 1 layout per XML file. I am kind of curious why you switched from using MSXML to write the file to using CStdioFile, I believe this is part of the problem. Has there been a fix to this? |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Here code you can use: to save: CXTPPropExchangeXMLNode px(FALSE, 0, _T("Settings")); CXTPPropExchangeSection pxLayout1(px.GetSection(_T( "Layout1")));pLayout1->DoPropExchange(&pxLayout1); CXTPPropExchangeSection pxLayout1(px.GetSection(_T("Layout2"))); pLayout2->DoPropExchange(&pxLayout2); px.SaveToFile(m_strIniFileName);
to load: CXTPPropExchangeXMLNode px(TRUE, 0, _T( "Settings")); // To serialize to XML file if (px.LoadFromFile(m_strIniFileName)){
CXTPPropExchangeSection pxLayout1(px.GetSection(_T("Layout1"))); pLayout1->DoPropExchange(&pxLayout1); CXTPPropExchangeSection pxLayout1(px.GetSection(_T("Layout2"))); pLayout2->DoPropExchange(&pxLayout2); } |
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |