WinStudio

About Context (Shortcut) Menus for Components

A context, or shortcut, menu is a global object that defines a standard right-click menu, which displays a list of commands. Each command is associated with an event in the menu definition. An event can be either a standard event or a user-defined event.

You can associate a context menu with any component. A context menu is activated when a user right-clicks the component.

Commands on Standard Context Menus

WinStudio provides a set of predefined context menus that present commands for launching standard events. The most commonly used commands on standard context menus include:

Menu Command Description
Add Launches the Add/Details form defined for the component and initializes the form for the insertion of a new IDO item.
Details Launches the Add/Details form defined for the component and initializes the form to the IDO item identified by the current value of the component.
Edit Grid Columns Launches the Edit Grid Column Visibility and Order dialog box for the selected grid component.
Find Launches the Find form defined for the component.
Help Displays help defined for the component.
Properties For graph components, displays the graph's Properties dialog box.

Standard Context Menus and Their Options

The options supported on some of the standard context menus include:

Standard ContextMenu Name

Add

Details

Find

Help

Properties

Edit Grid Columns

StdAddFind

x

 

x

x

 

 

StdDefault

 

 

 

x

 

 

StdDetails

 

x

 

x

 

 

StdDetailsAdd

x

x

 

x

 

 

StdDetailsAddFind

x

x

x

x

 

 

StdDetailsFind

 

x

x

x

 

 

StdFind

 

 

x

x

 

 

StdGraphDefault

 

 

 

x

x

 

StdGrid

 

 

 

x

 

x

StdHelp      

x

   

Creating Customized Context Menus

You can create new context menus that launch standard events and user-defined events.

To create a context menu:

  1. Create a list of menu commands.
  2. For each menu command, specify:

Related Topics

Add a Menu Item

Copy a Shortcut Menu

Create a Shortcut Menu

Add or Change a Component's Shortcut Menu

Delete a Menu Item

Delete a Shortcut Menu

Edit a Menu Item

Edit a Shortcut Menu