Contents | Index | < Browse | Browse >
- EZReq Text Choices Variable
This command will put up a system requester, in the same screen as
the GUI that called it, and wait for the user to click on a choice.
If the window that called them is not yet open, the EZReq will open
on the frontmost screen, or, if the font screen is not public, on
the workbench.
Text - This is the text that will appear in the requester
Choices - These are the choices which will appear as buttons in the
requester. The format for specifying them is to separate
the choices with | characters i.e.: "Quit|Cancel" will
supply you with 2 choices: "Quit" and "Cancel"
Variable - Will contain the number of the requester button chosen:
The Right most button (which will usually be CANCEL) will put a 0
into Variable. The other choices will put the number of the button,
reading from left to right.
Example:
EZReq "Quit?" "Abort|Quit|Exit|Cancel" MyVar
- will make a requester with 4 buttons, which will place the
following values into Variable, if they are clicked :
Abort = 1, Quit = 2, Exit = 3, Cancel = 0.