[Gambas-user] How To make a context menu ?
Benoit Minisini
gambas at ...1...
Thu Jan 22 18:01:11 CET 2004
On Thursday 22 January 2004 04:53, t4nu wrote:
> Hi Gambas User..
>
> How To make a context menu ? ( you know, if you click
> right mouse, then a pop up menu appear )
>
> I made a TreeView control in a form and I stop in :
>
> PUBLIC SUB TreeView1_Menu()
>
>
>
>
> END
>
> I really have no idea to do this. Well, anyone can help ?
>
>
No idea ? It like in VB yet!
Create a menu named "mnuMyMenu" (for example) with the menu editor. Make it
not visible, and populate it with all the sub-menus and menu entries you
want.
Then just call mnuMyMenu.Popup in the TreeView1_Menu() event handler.
That's all.
Regards,
--
Benoit Minisini
mailto:gambas at ...1...
More information about the User
mailing list