How to programmatically iterate through TAdvSmoothMegaMenu

Hi!
I tried to programmatically iterate a megamenu's sections and items, to enable/disable items based on user permissions, but couldn't find any Count properties for Sections and Sections Items.
Could you make it accesible? Or at least show a way to iterate through the complete menu?
There must be something I could not find.
Thanks.

If you drop a new TAdvSmoothMegaMenu component on the form, this code will show the nr. of sections in the menu under root item 1:

showmessage(advsmoothmegamenu1.MenuItems[0].Menu.Sections.Count.ToString);

Thanks!
I couldn't see this .Menu path. I was just using .MenuItems[i].Sections ... and this way there is no .Count .

This topic was automatically closed 60 minutes after the last reply. New replies are no longer allowed.