forked from livecode/livecode
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdragMove.lcdoc
More file actions
40 lines (27 loc) · 1.09 KB
/
dragMove.lcdoc
File metadata and controls
40 lines (27 loc) · 1.09 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
Name: dragMove
Type: message
Syntax: dragMove
Summary:
Sent when the user moves the mouse 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 dragMove -- in a field script
-- set the cursor so it shows you can only drop onto a link
if the textStyle of the mouseChunk contains "link"
then set the cursor to the ID of image "Drop Here"
else set the cursor to the ID of image "Dont Drop"
end dragMove
Description:
Handle the <dragMove> <message> if you want to perform some action (such
as updating a status display) when the user moves the mouse while
dragging, or if you want to keep continuous track of the
<mouse pointer|mouse pointer's> position during a <drag and drop>.
The <dragMove> <message> is sent to the <control> the <mouse pointer> is
over, or to the <card> if no <control> is under the <mouse pointer>.
References: drag and drop (glossary), message (glossary),
mouse pointer (glossary), control (glossary), card (keyword),
dragEnter (message)
Tags: ui