PC Review


Reply
Thread Tools Rate Thread

callback a gallery in xml ribbon

 
 
khoick245
Guest
Posts: n/a
 
      10th Apr 2010

hi all. i built a gallery on a xml ribbon. in xml file, the gallery ha
structure:

<gallery id="glrSymbolic"
getItemLabel="glrSymbolic_getItemLabel">

<item id="id1" label="%LastName%" />
<item id="id2" label="%FirstName%" />
<item id="d3" label="%UserName%" />
<item id="id4" label="%Email%" />
</gallery>


in the cs file. i callback event getItemLabel

public string glrSymbolic_getItemLabel(Office.IRibbonControl control
string index)
{
switch (index)
{
case "id1":
return "%LastName%";
case "id2":
return "%FirstName%";
case "id3":
return "%UserName%";
case "id4":
return "%Email%";
default:
return String.Empty;
}
}

my purpose is that i want to get the label of items in the galler
whenever i choice a item from gallery but it's not work. can you giv
me some suggestions


--
khoick245
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Ribbon callback from built-in buttons to trigger additional code Andrew Microsoft Excel Programming 0 8th Feb 2010 01:41 PM
Excel ribbon XML callback with parameter HelpMeNow Windows XP 1 1st Nov 2009 01:57 PM
Callback For Ribbon Tab Click or Activate Jerry Fox Microsoft Access VBA Modules 1 4th Jun 2009 04:53 PM
Callback problems with Ribbon gthelin Microsoft Access VBA Modules 3 14th Mar 2009 06:01 PM
Ribbon callback error RTY Microsoft Access VBA Modules 1 26th Feb 2009 05:58 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:12 PM.