Message Box useage from scripts

Jeanne A. E. DeVoto revolution at jaedworks.com
Sun Jul 25 19:48:29 EDT 2004


At 10:38 AM -0700 7/25/2004, Jim Ault wrote:
>How do I set the command line in the message box?
>None of the documentation or examples I have read covers this.
>(I have read Receipe for Find field).  I am an old Hypercard programmer.
>[...]
>Is there a message box property to set?
>Is there a message to send up the heirarchy?

There's no supported API for it, although since the message box is 
just a stack, you can use something like
     put "Hey there" into field "Message Field" of stack "Message Box"
This might stop working in the future if the Rev developers work on 
the message box and change the field name, though.

You might want to consider using a field in your stack, or else a 
substack, to hold the "find" command - then use a returnKey handler 
in the field with "do the text of me" to execute what's in the field. 
This approach provides you with a "cheap message box" that's under 
your control.
-- 
jeanne a. e. devoto ~ revolution at jaedworks.com
http://www.jaedworks.com


More information about the use-livecode mailing list