Re: [Gambas-user] dynamic created Menus

2017-02-08 Thread Gianluigi
While should not, it work also in a Module. ' Gambas module file Public Sub AddMenuFromOutsideForm(hMenu As Menu) Dim hMenuItem As Object hMenuItem = New Menu(hMenu) As "mnCharacters" hMenuItem.Text = "this don't work" hMenuItem.Tag = "This do not work" hMenuItem = New Menu(hMenu) As

Re: [Gambas-user] dynamic created Menus

2017-02-08 Thread Gianluigi
Hi Karl, If you want to work with events, you should use a class. See attached example. Regards Gianluigi 2017-02-07 23:41 GMT+01:00 Karl Reinl : > Am Montag, den 06.02.2017, 15:36 +0100 schrieb Fabien Bodard: > > I think the good way is this one :-) > > > > Public Sub AddMenuFromOutsideForm(h