Load Dynamic Menu items at run time?

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

Load Dynamic Menu items at run time?
 
agent86




Posts: 14
Joined: 2013-11-16
Add-In Express for Delphi

Is there sample code that shows how to "load" the dynamic menu items? Is there sample code that shows how to "read" the dynamic menu item that was selected?
Posted 02 Dec, 2013 11:42:33 Top
Andrei Smolin


Add-in Express team


Posts: 15202
Joined: 2006-05-11
Hello,

You don't load an item: you create an item in the OnCreate event of the TadxRibbonMenu component having TadxRibbonMenu.Dynamic=true and then add the item to the TadxRibbonMenu.Controls collection; you may want to clear the collection.

You don't read the selected item - note that the menu contains Ribbon controls, not Ribbon items. Instead, you handle the Click event of the selected control.

And no, there's no such code sample.

Regards from Belarus (GMT+3),

Andrei Smolin
Add-in Express Team Leader
Posted 03 Dec, 2013 02:58:29 Top