Changing menus from code

Discuss OrbForms Designer and PocketC Architect

Postby sturley on Thu Sep 12, 2002 12:45 pm

How do I add, edit and delete menus at runtime? Can I enable, disable, or select menu items from code?
I would like many of the forms in my application to have the same menus; can I use the same menubar on several forms? How do I do it?

Posts: 2
Joined: Thu Sep 12, 2002 12:40 pm
Location: USA

Postby dewey on Thu Sep 12, 2002 1:27 pm

You cannot add or delete menus at runtime, but you can change from one menu to another using the method UIForm.setmenu(). To use the same menu on multiple forms, define the menu for one of the forms. For the other forms, call UIForm.setmenu() in the form's onopen handler.
Site Admin
Posts: 749
Joined: Sun Oct 21, 2007 5:12 am

Return to OrbForms Designer and PocketC Architect

Who is online

Users browsing this forum: No registered users and 1 guest