MetaMenus

Anonymous
Anonymous

Toolbox Template

Metadata Popup Menus

Version
1.0

Requirements
Citect 7.20

Description
Citect 7.20 allows menus to be defined in the Project Editor (also allowing them to work with online changes). These can be used for page menus (built into the page templates) or for custom popup menus called from user graphic objects or Cicode. However, if popup menus are used extensively in a large project, the pagemenu.dbf could become large and hard to manage. Many menus could be unique to a specific graphic object and do not need to be globally defined in pagemenu.dbf. This sample project allows a custom menu to be defined in the metadata (v7.20+) of any graphic object. Then, from the input property of the object, call MetaMenu() to display the menu and execute the selected action. This also allows the menu to work with online changes since the menu can be modified without editing any Cicode.

See the documentation in menu.ci. To use it in your project, just copy menu.ci and tools.ci to your project.

Author
Eric Black

Submitter
Eric Black

Attachments