Using the GUI PainterProgramming ToolsUsing the Image Editor
 

Using the Menu Editor

Index

 


Introduction

The Menu Editor of ST/X allows you to build hierarchical menu structures for: For all, the components are defined using the same mechanism and operations in the Menu Editor.

The Menu Editor generates a resource method of the menu specification in the category menu specs of the class protocol, which returns a symbolic representation (literal array) of the menus components and their behavior. The menu resource methods are invoked by the UIBuilder when the applications window is created for those widgets which define a menu aspect.
 


Starting the Menu Editor

There are 4 ways to start the Menu Editor:  After startup, a Menu Editor appears as shown in next figure:

A View of a Menu Editor
 


Functions of the Menu Editor

The Menu Editor offers all functions for loading, saving, and modifying menu specifications. The basic functions can be accessed both by the menu and the tool bar. The basic functions are as follows:
 
Menu Button Description
File/New Creates a new menu spec. 
File/Load Opens a dialog to load a menu spec from a class. 
File/Save Saves current menu spec and if modified the help spec. 
Edit/Cut Cuts the selected item(s) and places it to the clipboard.
Edit/Copy Copies the selected item(s) to the clipboard.
Edit/Paste Pastes the contents of the clipboard.
Edit/Delete Delete the selected item(s).
Edit/Move Up Moves the selected item one step up. 
Edit/Move Down Moves the selected item one step down. 
Edit/Move Into Moves the selected item into next item as child item. 
Edit/Move Out Moves the selected item out of its parent item. 
Add/Menu Item Adds a new menu item. 
Add/Menu Separator Adds a new separator. 
Add/Submenu Adds a new sub menu. 
Add/Submenu Link Adds a new linked sub menu. 
 
 
Further, there are functions from the menu:
 
File Menu Description
File/Save As Opens a dialog to select or create a class and selector in order to save current menu spec. 
File/Pick A Menu... Changes the cursor to cross hair for moving it over another menu view to load its menu spec. 
File/Browse Class Opens a System Browser on current class and selector.
File/Exit Exits the Menu Editor.
 
 
Test Menu Description
Test/... Shows a menu preview of the current menu spec.
 
 
The editing of properties of the menu components is described in the next chapter.
 


Description of the Menu

 There are 5 types of components from which a menu can be constructed:

[stx-logo]
Copyright © 1998 eXept Software AG, all rights reserved