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 _______________________________________________ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode