Gallery's GetItemlabel issue?

S

Steven

In develop office2007 ribbon, We know gallery can put many item, Example

<gallery columns="2" rows="10" id="gl" itemHeight="40" itemWidth="40"
getItemCount="g_GetItemCount"

getItemLabel="g_GetItemLabel"
getItemImage="g_GetItemImage"
onAction="g_OnAction"
label="MyG" size="normal">
<item id="item1" label="G1" />
<item id="item2" label="G2" />
</gallery>

It has getItemLabel method!

public string g_GetItemLabel(Office.IRibbonControl control, int index)

I wan to know how to write this method get Item label name? Example "G1",
"G2" etc?

Thanks
 
C

Cindy M.

Hi Steven,
In develop office2007 ribbon, We know gallery can put many item, Example

<gallery columns="2" rows="10" id="gl" itemHeight="40" itemWidth="40"
getItemCount="g_GetItemCount"

getItemLabel="g_GetItemLabel"
getItemImage="g_GetItemImage"
onAction="g_OnAction"
label="MyG" size="normal">
<item id="item1" label="G1" />
<item id="item2" label="G2" />
</gallery>

It has getItemLabel method!

public string g_GetItemLabel(Office.IRibbonControl control, int index)

I wan to know how to write this method get Item label name? Example "G1",
"G2" etc?
I don't think you can combine the dynamic "Get" callbacks with the static
<item> elements. It's either one, or the other.

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 17 2005)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or
reply in the newsgroup and not by e-mail :)
 

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