4D v13.4

Hierarchical Pop-up Menus and Hierarchical Lists

Home

 
4D v13.4
Hierarchical Pop-up Menus and Hierarchical Lists

Hierarchical Pop-up Menus and Hierarchical Lists  


 

 

A hierarchical pop-up menu has a submenu associated with each item in the menu. Here is an example of a hierarchical menu:

Similarly, a hierarchical list has a sublist associated with each item in the list. Here is an example of a hierarchical list:

Note: In forms, hierarchical pop-up menus are limited to two levels. However, objects of the hierarchical list type are not limited.

You can expand or collapse the hierarchical list by clicking on the plus [+] or minus [–] sign (Windows) or arrows (Mac OS).

You can control whether an item in a hierarchical list can be modified by the user. If an item in a hierarchical list is modifiable, the user can edit it by using the Alt+click (Windows) / Option+click (under Mac OS) shortcut, or by carrying out a long click on the text of the item. If you populate a hierarchical list using a list created in the Lists editor, you control whether an item in a hierarchical list is modifiable using the Modifiable Element option in the Lists editor. For more information, see Setting list properties.

Note: You can insert hierarchical pop-up menus and hierarchical lists directly by dragging and dropping them from the Lists editor (see Drag and drop from the Lists editor).

You manage hierarchical pop-up menus and hierarchical lists using the Hierarchical list commands in the language. The principle consists in assigning the hierarchical list reference to the variable associated with the object in the Form editor. For more information, see the Hierarchical Lists chapter of the 4D Language Reference manual.

 
PROPERTIES 

Product: 4D
Theme: Working with active objects