m (1 revision)
Revision as of 14:56, 25 August 2016
Sent to a field(keyword) when the focus is being removed from that field(keyword) and the field's content has changed.Syntax:
on closeField -- make sure the user has entered a valid date if the text of me is not a date then beep answer "Please enter a date." select text of me end if end closeField
Handle the closeField message if you want to make sure a field's content is correct after it has been changed.
The selection is removed from a field (and the field loses focus) when another window is brought to the front, when the user clicks in another field, or when the user tabs out of the field. The field also loses focus when the select command is used to select text in another field. However, the closeField message is not sent when the user clicks in the same field.
If the lookAndFeel property is set to "Macintosh", the closeField message is generally not sent when another control (such as a button(keyword)) is clicked. This is because clicked buttons do not receive the focus on Mac OS systems, and therefore the selection remains active.