View Single Post
  #1  
Old July 11th 07, 08:22 AM posted to microsoft.public.outlook.program_addins
Christian Havel
external usenet poster
 
Posts: 43
Default Ribbon - Get position from clicked button

Hi,

I receive the click-event from my ribbon buttons. Now I have to get their
position to show a dialog beside them.

I found that I can call the properties Width and Height on the
ribbonControl. I get allways the same values independent if I move the
inspector. Any idea how I can get the position from the clicked Ribbon button?

'Callback method
Public Function cmdCommonRibbonBttn(ByVal control As IRibbonControl)
'Get the values
ribbonCtrl.Context.Width
ribbonCtrl.Context.Height
Ads