When has a field changed?
bobs at twft.com
Tue Oct 25 20:08:06 EDT 2011
Actually, the workaround I was thinking of trapped mouseUp in the card or stack handler, then used the command focus on nothing. This will force the loss of focus by the field thereby forcing a closeField to be sent to the field that lost the focus.
This way you can use closeField in fields, and still trap for those mouseups. Just be sure to pass mouseUp in all of your button handlers and you are good to go!
On Oct 25, 2011, at 4:24 PM, James Hurley wrote:
> Thanks all for the info about the effect of closeField.
> I have assumed that it was called only when a field is closed.
> As you point out it is also called when the field loses focus.
> It appears that that will happen when one clicks in another field or on the card, BUT not when one immediately clicks on another button.
> That would be a problem in my application. The user could change the field and then immediately click a button, a button that will not see the effect of the chance in the field.
> My tortured script at least sends the "change" message as soon as the mouse leave the field.
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
More information about the Use-livecode