4D v14.3Attaching menus |
||
|
4D v14.3
Attaching menus
Attaching menus
Once you have created a menu, you can attach it to a menu bar. This can be done by drag and drop, by the options menu or by the context menu of the central area.
It is possible to attach menus to other menus, in other words, to set up hierarchical submenus. In a menu bar, sub-menus can be used to group together functions organized according to subject within the same menu: Sub-menus and their items can have the same attributes as the menus themselves (actions, methods, shortcuts, icons, and so on). In the Menu editor, sub-menus appear as items of a hierarchical list: To create a sub-menu, simply associate (attach) an existing menu with the item of another menu. There are two ways to do this:
The menu being attached thus becomes a sub-menu. The title of the item is kept (the original sub-menu name is ignored), but this title can be modified. The items of the sub-menu keep their original characteristics and properties and the functioning of the sub-menu is identical to that of a standard menu. You can create sub-menus of sub-menus. Simply expand the sub-menu in the central list and attach a menu to one of the sub-items. You can add sub-menus to a virtually unlimited depth. Note, however, that for reasons concerning interface ergonomics, it is generally not recommended to go beyond two levels of sub-menus. You can detach a menu from a menu bar or a sub-menu from a menu at any time. The detached menu is then no longer available in the menu bar or sub-menu as the case may be, but it is still present in the list of menus. To detach a menu, click with the right button on the menu or sub-menu that you want to detach in the central list, then choose the Detach the menu “menu name” of the menu bar “bar name” or Detach the sub-menu of the item “item name”. It is possible to set “independent” menus; in other words, menus that are not attached to a menu bar or to another specific menu. These menus can be configured in the Menu editor but must be managed using language commands (see Menus). To create an independent menu, select the Menu command from the menu associated with the creation button under the menu bar/menu list: |
PROPERTIES
Product: 4D ARTICLE USAGE
4D Design Reference ( 4D v14 R2) |