If you want to set start menu by using the methods of ui.Interface class, you need
a main program which will serve as the MDI container,
a start menu file used to call child programs.
ui.Interface methods are called within the main program.
Every main program must must contain the following methods:
setName() – to name the MDI container.
setType() – to specify that this program ia an MDI container.
setStartMenu() – to specify the commands used to call the child programs.
For example,
MAIN
CALL ui.Interface.setType("container")
CALL ui.Application.GetCurrent().setMenuType("Menu")
CALL ui.Interface.setName("My MDI Container")
CALL ui.Interface.setText("Welcome to the MDI mode")
CALL ui.Interface.loadStartMenu("startmenu")
END MAIN
Start menu files are created in Lycia Form Designer in the manner similar to creating top menus. From a form perspective, a start menu is simply a form with a topMenu.
To create a start menu, you will use such widgets as MenuBar, MenuGroup, MenuCommand, and (optionally) MenuSeparator.
To learn how to set start menu using the methods of ui.Interface class, please, follow our simple example.