forked from livecode/livecode
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfocusIn.lcdoc
More file actions
39 lines (25 loc) · 1.03 KB
/
focusIn.lcdoc
File metadata and controls
39 lines (25 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
Name: focusIn
Type: message
Syntax: focusIn
Summary:
Sent to a <control> when it becomes <active control|active> <focus|focused>.
Introduced: 1.0
Associations: button, field
OS: mac, windows, linux, ios, android
Platforms: desktop, server, mobile
Example:
on focusIn -- boldface the text of the control
set the textStyle of the target to "bold"
end focusIn
Description:
Handle the <focusIn> <message> if you want to perform preparation or do
other tasks when a control receives the <focus|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 control(glossary)|active> <focus|focused>,
or when text in it is <selected> by a <handler>.
References: handler (glossary), focus (glossary), message (glossary), active control (glossary), control (keyword),
openField (message), resume (message), selected (property)
Tags: ui