
     Command:   PCREATE

     Display:   (RE)DEFINE POPUP

This command allows you to specify the data associated with a popup menu.
A popup menu is a simple list of options which may be associated with
a menu box for display when the box is selected;
selecting from the popup allows information qualifying the menu selection to be
passed to the application.

This command can be invoked by you to specify data for a new popup or
to modify data for existing popups.
Note that this command controls the specification of entries within a popup.
An entire popup is associated with a menu box via the DEFINE command.

You are prompted to enter the name of a popup to define or
point to a box in the menu with an associated popup.
After this is entered, a series of prompts is displayed on the command line
to obtain the necessary data.
If the popup already exists, the existing values are displayed in [ ]
at the end of the command line prompt.  Pressing the RETURN key
causes the value enclosed in [ ] to be the specified value.

The first prompt is for the text to display in the popup entry;
an empty text string may be specified.
The second prompt is for the command associated with the popup entry which
gets sent to the application when the entry is selected;
again, this text string may be empty.

The third prompt is for the name of any nested popup menu (its pullright).
You must enter a popup name or the string ``\\0'' if there is no popup.
Any named popup must exist at the time it is specified and
the tool will prevent you from creating loops in their pullright
definitions.

The next prompt is for the text to display in the next popup entry.
The tool will cycle between this prompt, the prompt for a command string, and
that for a popup name to allow you to enter/edit each entry of the popup.
The string ``\\0'' in response to the prompt for the next entry is used to
terminate the popup.
