Adding menuitems at runtime to TadxRibbonContextMenu as for TadxContextMenu

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

Adding menuitems at runtime to TadxRibbonContextMenu as for TadxContextMenu
To support Outlook 2013 TadxRibbonContextMenu must be used instead of TadxContextMenu; how to add subitems at runtime? 
Francesco Faleschini




Posts: 16
Joined: 2014-05-15
I sent you another email.
Thanks a lot.
Posted 20 May, 2014 01:06:58 Top
Andrei Smolin


Add-in Express team


Posts: 14106
Joined: 2006-05-11
Hi Francesco,

I've reproduced this. Hmm... To bypass this swap two code lines as shown in the code below:

...
    newButton := pil2.Controls.Add(rctButton).AsRibbonButton;
    newButton.ID :=  'uniqueString'+ IntToStr(i);
    newButton.Caption := 'Caption' + IntToStr(i);
    newButton.OnClick := DoOnRRecentClick;


We will look into fixing this.

Regards from Belarus (GMT+3),

Andrei Smolin
Add-in Express Team Leader
Posted 20 May, 2014 02:20:55 Top