forked from livecode/livecode
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfocusOut.lcdoc
More file actions
38 lines (25 loc) · 976 Bytes
/
focusOut.lcdoc
File metadata and controls
38 lines (25 loc) · 976 Bytes
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
Name: focusOut
Type: message
Syntax: focusOut
Summary:
Sent to a <button> or <field> when it becomes inactive (loses <focus>).
Associations: button, field
Introduced: 1.0
OS: mac, windows, linux, ios, android
Platforms: desktop, server, mobile
Example:
on focusOut
-- if you set the textStyle on focusIn, use a handler like this
-- handler to remove the styling when the control loses focus
set the textStyle of the target to empty
end focusOut
Description:
Handle the <focusOut> <message> if you want to perform preparation or do
other tasks when a <control> loses the <focus|keyboard focus>.
If the control is an unlocked field or a button whose menuMode is
"comboBox", the <closeField> or <exitField> <message> is sent to it
instead of the <focusOut> <message>.
References: focus (command), message (glossary), control (glossary),
focus (glossary), field (keyword), exitField (message),
suspendStack (message), closeField (message), button (object)
Tags: ui