focusIn

Typemessage
DictionaryLCS
LibraryLiveCode Script
Syntax
focusIn
Associationsbutton, field
Summary

Sent to a control when it becomes active focused.

Introduced1.0
OSmac, windows, linux, ios, android
Platformsdesktop, server, mobile
Example
on focusIn -- boldface the text of the control
  set the textStyle of the target to "bold"
end focusIn
RelatedKeyword: control
Property: selected
Message: openField, resume
Glossary: handler, focus, message, active control
Description

Handle the focusIn message if you want to perform preparation or do other tasks when a control receives the keyboard focus.

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.

Tagsui