[Gambas-user] Get the index of a menu

Fabien Bodard gambas.fr at ...626...
Sun Nov 29 23:07:38 CET 2009


better is to use the last key

PUBLIC SUB Menuname_Click()
  and do everything with the menu item with the properties
  Last.xxx = ...

2009/11/29 Matti <math.eber at ...221...>:
> What is the need for the index?
> A menu has a name.
> You can react to the click event with
> PUBLIC SUB Menuname_Click()
> and do everything with the menu item with the properties
> Menuname.xxx = ...
> enable/disable, check, and so on.
>
> Matti
>
>
> David Dell schrieb:
>> How can I get the index of a menu in the collection of children of its
>> parent? There is no Menu.Index property.
>>
>> Thank you,
>> David
>
> ------------------------------------------------------------------------------
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
> trial. Simplify your report design, integration and deployment - and focus on
> what you do best, core application coding. Discover what's new with
> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
> _______________________________________________
> 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