This repository was archived by the owner on Aug 31, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 225
Expand file tree
/
Copy pathdragEnter.lcdoc
More file actions
51 lines (36 loc) · 1.6 KB
/
dragEnter.lcdoc
File metadata and controls
51 lines (36 loc) · 1.6 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
39
40
41
42
43
44
45
46
47
48
49
50
Name: dragEnter
Type: message
Syntax: dragEnter
Summary:
Sent when the <mouse pointer> moves into an <object(glossary)> during a
<drag and drop>.
Introduced: 2.0
Associations: card, field, button, graphic, scrollbar, player, image
OS: mac, windows, linux
Platforms: desktop, server
Example:
on dragEnter -- show a green outline around the drop target
set the borderColor of the target to "green"
end dragEnter
Description:
Handle the <dragEnter> <message> to perform an action (for example,
display a special cursor or set the <acceptDrop> <property>) when the
<mouse pointer> enters an <object(glossary)>.
The <dragEnter> <message> is sent only when a <drag and drop> operation
is in progress.
If two controls overlap, a <dragEnter> <message> is sent whenever the
<mouse pointer> crosses into a visible portion of a <control>. The
<control> on the bottom receives a <dragEnter> <message> only when the
<mouse pointer> enters part of the <control> that can be seen. A
<control> that is completely hidden by another <control> on top of it
will never receive a <dragEnter> <message>.
>*Tip:* Use the <mouseLoc> function to determine where the
> <mouse pointer> is. Use the <target> <function> to determine which
> <control> the <mouse pointer> has entered.
References: function (control structure), mouseLoc (function),
target (function), property (glossary), control (glossary),
mouse pointer (glossary), message (glossary), drag and drop (glossary),
object (glossary), dragMove (message), mouseEnter (message),
dragLeave (message), dragStart (message), allowableDragActions (property),
acceptDrop (property)
Tags: ui