![]() |
import XML in Commandbar designer |
Post Reply
|
| Author | |
jerry2000
Newbie
Joined: 22 April 2004 Status: Offline Points: 29 |
Post Options
Thanks(0)
Quote Reply
Topic: import XML in Commandbar designerPosted: 12 May 2005 at 8:10am |
|
Hi
I have a created a commandbars XML file from the sample "DesignerSample" with this part of code: CXTPCommandBars* pCommandBars = GetCommandBars(); CXTPImageManager* pImageManager = pCommandBars->GetImageManager(); XTP_COMMANDBARS_PROPEXCHANGE_PARAM param; param.bSerializeControls = TRUE; param.bSaveOnlyCustomized = FALSE; param.bSerializeDesignerControls = TRUE; // Serialize to XML CXTPPropExchangeXMLNode px(FALSE, 0, _T("DesignerFile")); pCommandBars->DoPropExchange(&px, ¶m); // Icons CXTPPropExchangeSection secImages(px.GetSection(_T("Images"))); pImageManager->DoPropExchange(&secImages); // Accelerators: CXTPPropExchangeSection secShortcuts(px.GetSection(_T("Shortcuts"))); XTPShortcutManager()->DoPropExchange(&secShortcuts, this); px.SaveToFile(_T("test.xml")); When i import the XML in the designer the "controls tab" is empty. I have analysed the XML file. In my file the sections "Shortcuts", "Options", "ResourceManager" doesn't exist. Is this the problem, because i don't need this sections. I need to get the contols tab to work, because i want to edit menu entries. Toolbar entries editing does work. thanks P.s.: For this peace of code and the loading of this designed bars, i have needed 1 day of work (to find information in forum and in the source code). With a simple example this should be done in 5 minutes. |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 12 May 2005 at 3:32pm |
|
Hello, Jerry bSerializeDesignerControls was not implemented for _saving_ in 9.60.1, It is added in 9.70. Sorry about it. |
|
|
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 |