2009/11/29 Kadaitcha Man <[email protected]>: > 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" ] ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Gambas-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/gambas-user
