home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Fresh Fish 8
/
FreshFishVol8-CD1.bin
/
new
/
comm
/
mail
/
thor
/
thor.lha
/
rexx
/
requestnotify.thor
< prev
next >
Wrap
Text File
|
1994-08-06
|
2KB
|
57 lines
/*
**
** requestnotify.thor - will open a requester with some information
** text in it, specified to the command.
** If the command is not known to THOR or
** wrong parameters is specified, the
** command will return 10.
** The command will return 0 when the user
** chooses a gadget, and result will contain
** the number of the gadget selected.
** The value in result will be 1 (TRUE) for
** leftmost (positive) response, then each
** consecutive response will return 1 more,
** the rightmost (false) response will
** return 0 (FALSE) in result.
** TEXT can contain upto 300 characters and
** will be prosessed like the signature in THOR.
** This means that variables like $ver and $time
** can be used and will be translated.
** Max number of character is 300, this this is
** *after* any variables you use have been
** expanded, so with $time and $ver the limit
** for the text in is about 280 characters.
** BUTTONTEXT is the text to be in the
** gadgets and the shortcut can be set with
** '_' in front if the key that is to act as
** a shortcut. The text for each gadget is
** separated with a '|', and it's possible
** to define 1 or more gadgets.
**
** Template:
**
** TEXT/A,BUTTONTEXT=BT/A
*/
options results
address THOR.01
THORTOFRONT
REQUESTNOTIFY TEXT '"The time is now: $time\n\nOK will return 1, MAYBE will return 2\nand CANCEL will return 0"' BT '"_OK|_MAYBE|_CANCEL"'
retval = result
if(retval = 0) then do
say 'User pressed CANCEL'
end
if(retval = 1) then do
say 'User pressed OK'
end
if(retval = 2) then do
say 'User pressed MAYBE'
end