- Overview
- Vocabulary associated with the main menus
- How to create, edit and delete a main menu?
- Creating a main menu
- Editing a main menu
- Deleting a main menu
- ? menu
- Handling a main menu through programming
Managing the main menus of windows
A main menu is always associated with a window. This menu is displayed below the title bar of the window. In most cases, the applications contain a menu window. This window only contains a main menu and is used to access the other windows of the application. Vocabulary associated with the main menus To easily handle a main menu, you must be familiar with the following vocabulary:
How to create, edit and delete a main menu? Creating a main menu To create a main menu: - In the window editor, open the window where a main menu must be added.
- On the "Window" tab, in the "Bars and menus" group, expand "Main menu" and select "Add main menu". The first menu option is displayed in the menu bar. By default, the name of main menu is "_Menu" and the caption of this first option is "Menu".
  The menu is automatically created in the Action Bar control. - To modify the name of main menu:
display the "General" tab of window description ("Description" in the context menu of the window) and type the new name for the main menu in the "Name of main menu" option. display the "Style" tab of window description ("Description" in the context menu of window) and type the new name for the main menu in the "Name of main menu" option.
- Add the menu options into the window in edit. For more details, see Handling the menu options.
Tip: To add images into the menu options, use the image catalog ("Catalog" option of  button). The selected images will be automatically adapted to the size and to the image format expected by the runtime platform used. Editing a main menu To edit a main menu: - Open a window containing a main menu in the window editor.
- Select one of the menu options. The options and the sub-options are automatically displayed.
Deleting a main menu To delete a main menu: - In the window editor, open the window from which the main menu must be deleted.
- On the "Window" tab, in the "Bars and menus" group, expand "Main menu" and select "Delete main menu". All the menu options and the code associated with this main menu are deleted.
Handling a main menu through programming
This page is also available for…
|
|
|
|