Is there a way to get an "exitGroup" behavior when someone clicks a non-group field

Mike Bonner bonnmike at
Tue Jun 26 12:23:17 EDT 2012

I'm not sure exactly what you're asking so i'm going to restate it as what
I think you are asking.

You have a group that pops up. When the click outside the group you want
its termination script to run.
Unfortunately, things don't work as expected when yo click a field outside
the group.

So, basically you don't want other fields to be select-able while the group
is showing.

A couple thoughts.  When the group opens, disable the controls that are not
part of the group. Then its impossible for a user to click into a different
field.  Re-enable them when the group closes. (depending on how things are
coded it might be enough to set the locktext of the fields instead)

The other option would be to use a modal stack instead of a group because
this locks out the calling stack until cancelled or completed.

On Tue, Jun 26, 2012 at 9:54 AM, Dr. Hawkins <dochawk at> wrote:

> I have a group that pops up under certain circumstances to gather more
> fields and merge them for the target field.
> I have it's termination behavior working correctly--when it terminates
> The problem is that I can click into a field outside the group without
> triggering it, at which point it could keep values that could
> "contaminate" another groupl.
> Do I need to watch for mouseDown for any other target, or some such?
> Check for the new focuse somehow on both exitFIeld and CloseField?
> It seems that there *should* be an exitGroup or exitGroupFields type event
> Or something like "if the focusedObject is not a member of this group
> then . . ." type construct
> --
> The Hawkins Law Firm
> Richard E. Hawkins, Esq.
> (702) 508-8462
> HawkinsLawFirm at
> 3025 S. Maryland Parkway
> Suite A
> Las Vegas, NV  89109
> _______________________________________________
> use-livecode mailing list
> use-livecode at
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:

More information about the Use-livecode mailing list