How can i change a ribbon button caption for just a specific inspector instance.

Add-in Express™ Support Service
That's what is more important than anything else

How can i change a ribbon button caption for just a specific inspector instance.
 
ahmad zaher




Posts: 37
Joined: 2009-11-03
Hi,
i need to add a timer for each outlook mail inspector , then to show the elapsed time as the caption of a button ,
when i change the caption of the button it is changed in all the inspector instances,
i need to get a reference or the id of the button in a specific inspector,

Thank you very much for the help
Posted 29 Oct, 2010 04:26:51 Top
Andrei Smolin


Add-in Express team


Posts: 18833
Joined: 2006-05-11
Hi Ahmad,

Please see the PropertyChanging event of the ADXRibbonButton component. You cast e.Context from the event parameters to Outlook.Inspector if e.PropertyType == AddinExpress.MSO.ADXRibbonControlPropertyType.Caption; then you check if the inspector meets your requirements.


Andrei Smolin
Add-in Express Team Leader
Posted 29 Oct, 2010 05:05:00 Top
ahmad zaher




Posts: 37
Joined: 2009-11-03
Dear Andrei ,
Thank you it works well ,thank you
Posted 30 Oct, 2010 15:45:58 Top