Page 1 of 1

PostPosted: Thu Sep 12, 2002 12:45 pm
by sturley
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?


PostPosted: Thu Sep 12, 2002 1:27 pm
by dewey
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.