Problem with FocusIn

Devin Asay devin_asay at
Sun Nov 4 19:52:06 EST 2007

Hello Claus,

On Nov 4, 2007, at 9:16 AM, Claus Dreischer wrote:

> Hi,
> on a side note:
> It's nice that some people are trying to improve the documentation  
> (wiki, etc.),
> but on the other hand, there are people (me) who even can't read  
> the existing documentaion =:-/
> The solution to my problem is the closeField message, which is only  
> sent when the content *has* changed.

What you want is the exitField message. It is sent when leaving the  
field and the content has not changed.


>> check the field locking.
>> from the docs:
>> If the control is an unlocked field or a button whose menuMode is  
>> "comboBox", the openField message is sent to it instead of the  
>> focusIn message.
>> A locked field receives the focusIn message when the user tabs to  
>> it or otherwise makes it active (focused), or when text in it is  
>> selected by a handler.
>>> Hi,
>>> i have problems with the focusIn message.
>>> What i want to achive is to remember the value of a field
>>> when the user is editing it (on focusIn). After that (on focusOut),
>>> i would like to check the new value against the remembered one.
>>> If they are different, the change has to be saved,
>>> so i ask the user to do so when he's leaving the card.
>>> I think the focusIn message is not sent because even something like
>>> on focusIn
>>> 	beep
>>> end focusIn
>>> does not work.

Devin Asay
Humanities Technology and Research Support Center
Brigham Young University

More information about the Use-livecode mailing list