ui.Form.LoadTopMenu()

loadTopMenu() is used to load a top menu for the specified ui.Form object:

CALL MyForm.LoadTopMenu("mytopmenu_form")

It is possible to use a form file to store a top menu which one can apply to other form files and windows.

To have a top menu that can be added to other program objects, you should create a form containing only a top menu and no other form objects besides the default ones.

The third-party files containing the top menu definition are also converted into the .fm2 format.

If there is a top menu already specified for the target form, this top menu is replaced by the one loaded from the .fm2 file.

It is advised that you don’t use the file extension name in the top menu form specification. In this case, the run time system will automatically add it. However, you still can specify the toolbar form as mytopmenu_form.fm2.

When you specify a file name, be careful with its case.

UNIX is case-sensitive, so it will treat files which names come in different cases as separate files.

 

Contact Us

Privacy Policy

Copyright © 2024 Querix, (UK) Ltd.