Show TOC

Background documentationContext Menus and Action Menus Locate this document in the navigation structure

 

A context menu is a list of menu options that appears at runtime when the user chooses the secondary mouse button. The list of menu options displayed generally relates to the object currently selected on the screen and varies according to the current state, or context, of the application.

An action menu is a specific icon which displays a list of menu options or activities when the user chooses this icon at runtime.

Both context and action menus can be assigned to the individual elements of the GUIBB component. Additionally, context menus can also be added to the GUIBB component as a whole, that is, a context menu could be assigned to an individual column in a list or to the overall list itself.

The application's feeder class is responsible for defining both context and action menus. However, both menu types can be configured in the Floorplan Manager (FPM) configuration editor, FLUID.

Structure

Context menus are configured in the Menu Schema panel inside the FPM configuration editor, FLUID, of the GUIBB component of your application.

Each context menu has a unique Context Menu ID and contains one or more Menu Items (actions).

The following attributes exist for Menu Items:

  • Item Type

    Determines how the text detailing the menu item is presented at runtime. The following Item Types exist:

    • Single Action Item

    • Menu Checkbox

    • Submenu

  • FPM Event ID

    The FPM event that is raised by this menu item.

  • Needs More Information

    This option is selected if another dialog box appears after the menu item; an ellipsis appears after the name of the menu item to indicate to the user that more information will follow.

  • Image

    The name of the icon that appears alongside the text of the menu item.

  • Separator Bar

    As an alternative to displaying an uninterrupted list of menu items, separator bars can be used to organize menu items into meaningful groups.

Note Note

Not all attributes exist for all Item Types.

A context menu can be displayed as an Action Menu at runtime by assigning the context menu to the Action Menu ID field of an element on the <GUIBB> Schema panel.

End of the note.

Once you have configured a context menu, you can assign it to an individual element in the GUIBB or to the GUIBB component itself. You can also decide to display the context menu not as a context menu but as an action menu instead.