message box

Brad Allen BradAllen at mac.com
Mon Sep 2 15:48:02 CDT 2002


Well, here's a start: You could use the Transcript "do" command to 
execute any script the user enters, as in:

on returnInField --put this handler into the script of the data entry field
   do line 1 of me
end returnInField

if you want to have a multiline message box, you could use:

on enterInField
    do me
end enterInField

However, this doesn't have all the features of the message box. For 
instance, if you want the results to display in a field called 
"message output", you'd have to type:

put "whatever" into field "message output"

whereas with the message box, you can just type  put "whatever" and 
it will appear in the message box output. Also, there's the problem 
of displaying syntax errors. The message box does that gracefully by 
displaying an error message in the message box output. I'm not sure 
how to capture that error message text.


>I am confused as to how to script such a substack and I would appreciate any
>help.
>
>James
>
>>  From: Gary Rathbone <gary.rathbone at btclick.com>
>>  Organization: Interfusion Ltd
>>  Reply-To: use-revolution at lists.runrev.com
>>  Date: Mon, 02 Sep 2002 20:18:37 +0100
>>  To: use-revolution at lists.runrev.com
>>  Subject: Re: message box
>>
>>  Easiest way is to create a substack with the control features you need. You
>>  can send messages such as
>>
>>  put "Operation Complete..." into fld "tmessage" of wd "MessageBox"
>>
>>  If you wish to act on 'commands' the user types into the "MessageBox" then
>>  this can be done using either a 'Submit' button or 'on exitField' handler
>>
>>  Regards
>>
>>  Gary Rathbone
>>
>>
>>
>>  ----- Original Message -----
>>  From: "james lewes" <jameslewes at comcast.net>
>>  To: <use-revolution at lists.runrev.com>
>>  Sent: Monday, September 02, 2002 6:50 PM
>>  Subject: message box
>>
>>
>>>  in supercard there was a way of building a message box into a standalone,
>>>  how can one do the same thing in Revolution
>>>  _______________________________________________
>>>  use-revolution mailing list
>>>  use-revolution at lists.runrev.com
>>>  http://lists.runrev.com/mailman/listinfo/use-revolution
>>>
>>
>>
>>  _______________________________________________
>>  use-revolution mailing list
>>  use-revolution at lists.runrev.com
>>  http://lists.runrev.com/mailman/listinfo/use-revolution
>
>_______________________________________________
>use-revolution mailing list
>use-revolution at lists.runrev.com
>http://lists.runrev.com/mailman/listinfo/use-revolution




More information about the use-livecode mailing list