![]() |
Defining toolbar on Ribbon Bar in XML |
Post Reply ![]() |
Author | |
JoeW ![]() Newbie ![]() ![]() Joined: 10 November 2008 Location: United States Status: Offline Points: 7 |
![]() ![]() ![]() ![]() ![]() 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?
|
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
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 |
|
![]() |
|
JoeW ![]() Newbie ![]() ![]() Joined: 10 November 2008 Location: United States Status: Offline Points: 7 |
![]() ![]() ![]() ![]() ![]() |
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, ¶m); px.SaveToFile( "c:\\users\\joe\\testout.xml"); |
|
![]() |
|
JoeW ![]() Newbie ![]() ![]() Joined: 10 November 2008 Location: United States Status: Offline Points: 7 |
![]() ![]() ![]() ![]() ![]() |
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" |
|
![]() |
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 |