[Gambas-user] Creatable Menu

Kadaitcha Man nospam.nospam.nospam at ...626...
Sun Nov 29 02:35:50 CET 2009


2009/11/29 Kadaitcha Man <nospam.nospam.nospam at ...626...>:
> Menus are creatable according to http://gambasdoc.org/help/comp/gb.qt/menu
>
> However I cannot see any methods anywhere that will allow me to add a
> menu item in code. For what I need to do, pre-defining the menus using
> the menu editor then hiding or showing the items is not practical.
>
> Have I missed something?

Yes, you missed something.

"Parent must be a Window or another menu."

IM hMenu AS Menu

hMenu = NEW Menu ( Parent AS Object [ , Hidden AS Boolean ] ) [ AS
"event name" ]




More information about the User mailing list