[Gambas-user] Menu question
Dimitris Anogiatis
dosida at ...626...
Sat Jul 25 08:02:20 CEST 2009
Hey Richard,
>From what I've read in the gambasdocs and from what I can infer,
every menu child is a menuItem collection
so if you have a menu called mnuFile you can do something like this
Dim subMenu as MenuChildren
'this will get the children of the main file menu
subMenu = mnuFile.Children
doing a subMenu.Children.Count will let you know if the submenu has submenus
of its own.
if getting the full menu structure is your goal then perhaps creating a
recursive algorithm
is your best bet.
Hope this helps
Regards
Dimitris
On Fri, Jul 24, 2009 at 5:26 PM, richard terry <rterry at ...1946...>wrote:
> Each menu has 'children'
> menu[0] = child 0 etc (I think)
>
> is there any way to return the child menu item collection simply
>
> ie with list you can read an listindex, no such thing in the menu?
>
>
> regards
>
> richard
>
>
>
> ------------------------------------------------------------------------------
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
More information about the User
mailing list