Re: [Gambas-user] Trouble removing menu item during run time

2012-12-01 Thread Willy Raets
On Sat, 2012-12-01 at 07:29 +0100, Fabien Bodard wrote: > Not addonname.index but addonname[index] > > Le 1 déc. 2012 07:28, "Fabien Bodard" a écrit : > Simply tous need to store the menu instance in an array or a > collection. > > Collection is usefully as you c

Re: [Gambas-user] Trouble removing menu item during run time

2012-11-30 Thread Fabien Bodard
Not addonname.index but addonname[index] Le 1 déc. 2012 07:28, "Fabien Bodard" a écrit : > Simply tous need to store the menu instance in an array or a collection. > > Collection is usefully as you can retrieve menu from a name > So in your form header > Private $colMenu as new collection > > In

Re: [Gambas-user] Trouble removing menu item during run time

2012-11-30 Thread Fabien Bodard
Simply tous need to store the menu instance in an array or a collection. Collection is usefully as you can retrieve menu from a name So in your form header Private $colMenu as new collection In the menu creation: ... $colMenu[AddonName.index]=hmenu ... For delete $colMenu[AddonName.index] .delet

Re: [Gambas-user] Trouble removing menu item during run time

2012-11-30 Thread Willy Raets
On Sat, 2012-12-01 at 11:00 +1030, Bruce wrote: > On Sat, 2012-12-01 at 01:13 +0100, Willy Raets wrote: > > I have this piece of code (in a rather big project) that build op a menu > > during run time in case AddOns get installed. Each installed AddOn gets > > it own Menu Item upon installation for

Re: [Gambas-user] Trouble removing menu item during run time

2012-11-30 Thread Bruce
On Sat, 2012-12-01 at 01:13 +0100, Willy Raets wrote: > I have this piece of code (in a rather big project) that build op a menu > during run time in case AddOns get installed. Each installed AddOn gets > it own Menu Item upon installation for launching the AddOn. THis all > works like clockwork. >

[Gambas-user] Trouble removing menu item during run time

2012-11-30 Thread Willy Raets
I have this piece of code (in a rather big project) that build op a menu during run time in case AddOns get installed. Each installed AddOn gets it own Menu Item upon installation for launching the AddOn. THis all works like clockwork. This is the code that creates the menu items for each Add On i