UIRibbon- XML part

S

SteveDB1

Morning all.
I'm not sure this is the correct place to post my question, so if it's not,
please let me know, and I'll move it over to the correct newsgroup.

I'm using the Custom UI Editor to create a ribbon menu for my Excel 2007.
So far, it's been working real well-- I've been using it for over 18 months
now.
I want to make some modifications to it, and have hit a snag.
The snag is that I was using this particular grouping as a menu and want to
change it to a gallery.
I had originally tried making it a gallery but the button control would not
work-- I kept receiving an error that stated the button was not the right
element to use; or that I could only use the button command within the
gallery once, and it had to be at the bottom. Since it's been a while, I
tried again-- forgetting the original troubles I had then-- and found the
same error.
I looked up the 3 part Ribbon tutorial on the MSDN library, and pulled a
copy of the code they use for the insert month gallery sample. I tried
duplicating it, and in my version-- with and without the onAction in the
Gallery, and the Button at the bottom, I get multiple "OnAction not declared"
errors for my item controls.
Thus-- I don't understand now where I've gone wrong, and am simply stuck.
Your helps are appreciated.
Thank you.

My XML code is below.

--------------------------------------------------------------------------------
<gallery id="GalleryA" label="Section Numbers" rows= "6" columns = "6"
screentip= "These are the section numbers" onAction="InsertSection" >

<item id="__id15" label="6" onAction="Sect06" />
<item id="__id16" label="5" onAction="Sect05" />
<item id="__id17a" label="4" onAction="Sect04" />
<item id="__id18a" label="3" onAction="Sect03" />
<item id="__id17" label="2" onAction="Sect02" />
<item id="__id18" label="1" onAction="Sect01" />
<item id="__id19" label="7" onAction="Sect07" />
<item id="__id20" label="8" onAction="Sect08" />
<item id="__id21" label="9" onAction="Sect09" />
<item id="__id22" label="10" onAction="Sect10" />
<item id="__id23" label="11" onAction="Sect11" />
<item id="__id24" label="12" onAction="Sect12" />
<item id="__id25" label="18" onAction="Sect18" />
<item id="__id26" label="17" onAction="Sect17" />
<item id="__id27" label="16" onAction="Sect16" />
<item id="__id28" label="15" onAction="Sect15" />
<item id="__id29" label="14" onAction="Sect14" />
<item id="__id30" label="13" onAction="Sect13" />
<item id="__id31" label="19" onAction="Sect19" />
<item id="__id32" label="20" onAction="Sect20" />
<item id="__id33" label="21" onAction="Sect21" />
<item id="__id34" label="22" onAction="Sect22" />
<item id="__id35" label="23" onAction="Sect23" />
<item id="__id36" label="24" onAction="Sect24" />
<item id="__id25a" label="30" onAction="Sect30" />
<item id="__id26a" label="29" onAction="Sect29" />
<item id="__id27a" label="28" onAction="Sect28" />
<item id="__id28a" label="27" onAction="Sect27" />
<item id="__id29a" label="26" onAction="Sect26" />
<item id="__id30a" label="25" onAction="Sect25" />
<item id="__id31a" label="31" onAction="Sect31" />
<item id="__id32a" label="32" onAction="Sect32" />
<item id="__id33a" label="33" onAction="Sect33" />
<item id="__id34a" label="34" onAction="Sect34" />
<item id="__id35a" label="35" onAction="Sect35" />
<item id="__id36a" label="36" onAction="Sect36" />
<button id ="_buttonSectionNo" label="Insert Section"
onaction="SectionNo" />
</gallery>
 
S

Steve

Ron De Bruin solved the issue, by developing some excellent ribbon-gallery
examples in his tips page.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top