Re: [Gambas-user] Get the index of a menu

2009-11-29 Thread Fabien Bodard
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 : > 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

Re: [Gambas-user] Get the index of a menu

2009-11-29 Thread Matti
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

Re: [Gambas-user] Get the index of a menu

2009-11-27 Thread Kadaitcha Man
2009/11/28 David Dell : > 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, Put the ID in the tag property. That way you don't have to go searching through a FOR EACH loop to get the ID. I have a similar issue with Com

[Gambas-user] Get the index of a menu

2009-11-27 Thread David Dell
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. Simpl