Using groups as dialogs..
Scott Rossi
scott at tactilemedia.com
Fri Jul 8 05:41:58 EDT 2011
Recently, Chipp Walters wrote:
> I'd like to have an easy way to be able to use a group 'dialog box' inside a
> script and of course could not use a wait until mouseclick() or other cycle
> stealing technique. I'd be interested to know if anyone has figured out how
> to do this.
In my experience, "wait until condition" doesn't steal cycles, at least on
OS X. I tried this quick test with a graphic acting as the dialog:
[ In a button ]
global dlogActive
on mouseUp
show grc "dlog"
put true into dlogActive
wait until (dlogActive is false) with messages
hide grc "dlog"
end mouseUp
[ In the graphic ]
global dlogActive
on mouseUp
put false into dlogActive
end mouseUp
Looking at Activity Monitor, there doesn't appear to be any appreciable
processor use during the wait. Seems to work.
Hope this helps.
Regards,
Scott Rossi
Creative Director
Tactile Media, UX Design
More information about the use-livecode
mailing list