Main-Menu Customization

Aus ExpeccoWiki

Wechseln zu: Navigation, Suche

Inhaltsverzeichnis

Introduction

It is often convenient, to provide quick access to additional project-specific operations in the main window. For example, to execute calibration, installation, initialization or shutdown operations for equipment. Or, to provide additional information services and even GUIs (via GUI-action blocks) for monitoring or other tasks. Expecco allows for additional menu items to be added to the "Extra" menu, and actions to be associated with those items. These actions can be any action block (i.e. compound, elementary or calls to external programs).

Defining the Action Semantic

Create a new folder item, and define one action block for every menu item to be added. Use subfolders for grouping. Actions can be elementay or compound. Helper blocks which are not to be shown as menu items should be placed as children of those blocks, not into real folder, because submenus are created only for real folders later.

Attaching the Menu

Navigate to the project's "Misc" editor, to find the box named "GUI Extensions" at the bottom. Drag and drop your menu folder (the one created above) into the "Option Menu" field. Because this option-menu definition and its semantic is kept in the project, it is independent of any user settings, and available whenever that project is loaded.

Debugging

When these menu items are executed, no Blockrunner or Testplan execution window is present or created to give you any error feedback. This has been done by purpose, to make the User-Interface easier to use for non-experts. Therefore, you have to test and debug those menu functions extensively before.


  Back to Online Documentation

Meine Werkzeuge