Using groups as dialogs..

Chipp Walters chipp at chipp.com
Fri Jul 8 06:12:07 EDT 2011


Wow. Didn't know that. Thanks, I'll check it out on PC.

On Fri, Jul 8, 2011 at 4:41 AM, Scott Rossi <scott at tactilemedia.com> wrote:

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



-- 
Chipp Walters
CEO, Shafer Walters Group, Inc.



More information about the use-livecode mailing list