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

Mark Schonewille m.schonewille at
Tue Jun 26 13:13:08 EDT 2012


Like others, I'm not sure what you're looking for.

If you want to run a script after the user clicks outside a field, use the closeField and exitField messages. You could also add a graphic to the group, behind all the controls of the group, and add a mouseUp handler to this graphic.

As mike wrote, you can disable all controls while the group is visible. That would make your interface less confusing for the user.

Best regards,

Mark Schonewille

Economy-x-Talk Consulting and Software Engineering
KvK: 50277553

Use Color Converter to convert CMYK, RGB, RAL, XYZ, H.Lab and other colour spaces.

On 26 jun 2012, at 17:54, Dr. Hawkins 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

More information about the Use-livecode mailing list