Setting a Start Menu by Methods of ui.Interface Class

If you want to set start menu by using the methods of ui.Interface class, you need

 

ui.Interface methods are called within the main program.

 

Every main program must must contain the following methods:

 

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.