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
30 lines (19 loc) · 1.01 KB
/
Copy pathdragMove.lcdoc
File metadata and controls
30 lines (19 loc) · 1.01 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
Name: dragMove
Type: message
Syntax: dragMove
Summary: Sent when the user moves the mouse during a <drag and drop>.
Introduced: 2.0
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: card (keyword), dragEnter (message), drag and drop (glossary), message (glossary), mouse pointer (glossary), control (glossary)
Tags: ui