Print Page | Close Window

Defining toolbar on Ribbon Bar in XML

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=12649
Printed Date: 28 February 2025 at 3:18pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Defining toolbar on Ribbon Bar in XML
Posted By: JoeW
Subject: Defining toolbar on Ribbon Bar in XML
Date Posted: 10 November 2008 at 11:56am
We have decided to try and define our ribbon bars with XML so that we can update the UI with just a change to the XML file, and also it would give the customer flexibility as well to change it.
 
What I want to do is have a "Font" section sort of like how MS Word or Excel does it.  So, it needs to be more of a toolbar layout in that particular Group.
 
Is there something I can define in the Group, ControlGroupOption, to make the buttons layout as a toolbar, i.e. left to right instead of vertically, 3-per column?



Replies:
Posted By: Oleg
Date Posted: 11 November 2008 at 1:12am
Him
 
Think its easy for you first create layout in code and then save it to XML file with DoPropExchange method.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: JoeW
Date Posted: 11 November 2008 at 1:06pm
Should I be doing anything other than this?  Because it does not show anything useful.  I am using ver 1202.
 

XTP_COMMANDBARS_PROPEXCHANGE_PARAM param;

param.bSerializeControls = TRUE;

CXTPPropExchangeXMLNode px(FALSE, NULL, _T("Settings"));

CXTPPropExchangeSection pxCommandBars(px.GetSection(_T("CommandBars")));

GetCommandBars()->DoPropExchange(&pxCommandBars, &param);

px.SaveToFile("c:\\users\\joe\\testout.xml");



Posted By: JoeW
Date Posted: 11 November 2008 at 3:24pm
I finally found the answer to my question by investigating the code.  The answer is to add the following attribute to the Group:
 

ControlsGrouping="1"




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