Storing commandbars layout in XML |
Post Reply |
Author | |
yoavo
Senior Member Joined: 29 February 2004 Location: Israel Status: Offline Points: 140 |
Post Options
Thanks(0)
Posted: 17 January 2006 at 8:41am |
Hi, In my application I am storing the layout of the commandbars in an .XML file. I have more than one layout (for each document template a different layout), and I need to load defaults if the specific section was not created yet. The problem is that I can not tell if a section exists in the XML file (because the method GetSection of CXTPPropExchangeXMLNode always return a value). I know that I can overcome the problem using an XML file for each document template, but I preffer to have only one file. Is there a way to know if a Section exists or not in the XML file ? Here is my code: CXTPPropExchangeXMLNode px(TRUE, 0, _T( "Settings")); if (px.LoadFromFile(m_strIniFileName)){ CXTPPropExchangeSection pxCommandBars(px.GetSection(strDocTmpl ));XTP_COMMANDBARS_PROPEXCHANGE_PARAM param; param.bSerializeControls = TRUE; GetCommandBars()->DoPropExchange(&pxCommandBars, ¶m); } Yoav. |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hello, At least in 9.80 was added px.IsSectionExists(strDocTmpl) method. |
|
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 |