Livecode Wiki
Advertisement

A Message sent to an unlocked field when the user clicks or selects text in that field. If there is a message handler by the same name in the message path, then it will be executed.

Message[]

Syntax:

openField

The openField message is sent also to buttons whose menuMode is "comboBox", since the type-in box in a combo box behaves like a field.

The openField message is not sent to locked fields. When a locked field becomes active (focused) or when text in it is selected by a handler, or the focusIn message is sent to it.

Message handler[]

Example:

on openField                     -- when clicking in the field, select all its text
  select text of the target
end openField

Handle the openField message if you want to do something when the user enters a field.

See also: focusIn, exitField, closeField, field, & button

Advertisement