annotate tests/Dnd/dragtest.el @ 183:e121b013d1f0 r20-3b18

Import from CVS: tag r20-3b18
author cvs
date Mon, 13 Aug 2007 09:54:23 +0200
parents
children acd284d43ca1
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
183
e121b013d1f0 Import from CVS: tag r20-3b18
cvs
parents:
diff changeset
1 ;; a simple test of the drag functions
e121b013d1f0 Import from CVS: tag r20-3b18
cvs
parents:
diff changeset
2 ;;
e121b013d1f0 Import from CVS: tag r20-3b18
cvs
parents:
diff changeset
3 ;; still to do: drag only after about 10 pix of movement
e121b013d1f0 Import from CVS: tag r20-3b18
cvs
parents:
diff changeset
4
e121b013d1f0 Import from CVS: tag r20-3b18
cvs
parents:
diff changeset
5 (defun text-drag (event)
e121b013d1f0 Import from CVS: tag r20-3b18
cvs
parents:
diff changeset
6 (interactive "@e")
e121b013d1f0 Import from CVS: tag r20-3b18
cvs
parents:
diff changeset
7 (offix-start-drag event "That's a test"))
e121b013d1f0 Import from CVS: tag r20-3b18
cvs
parents:
diff changeset
8
e121b013d1f0 Import from CVS: tag r20-3b18
cvs
parents:
diff changeset
9 (defun file-drag (event)
e121b013d1f0 Import from CVS: tag r20-3b18
cvs
parents:
diff changeset
10 (interactive "@e")
e121b013d1f0 Import from CVS: tag r20-3b18
cvs
parents:
diff changeset
11 (offix-start-drag event "/tmp/printcap" 2))
e121b013d1f0 Import from CVS: tag r20-3b18
cvs
parents:
diff changeset
12
e121b013d1f0 Import from CVS: tag r20-3b18
cvs
parents:
diff changeset
13 (defun url-drag (event)
e121b013d1f0 Import from CVS: tag r20-3b18
cvs
parents:
diff changeset
14 (interactive "@e")
e121b013d1f0 Import from CVS: tag r20-3b18
cvs
parents:
diff changeset
15 (offix-start-drag event "http://www.xemacs.org/" 8))
e121b013d1f0 Import from CVS: tag r20-3b18
cvs
parents:
diff changeset
16
e121b013d1f0 Import from CVS: tag r20-3b18
cvs
parents:
diff changeset
17 (define-key global-map [button1] 'text-drag)
e121b013d1f0 Import from CVS: tag r20-3b18
cvs
parents:
diff changeset
18 (define-key global-map [button2] 'file-drag)
e121b013d1f0 Import from CVS: tag r20-3b18
cvs
parents:
diff changeset
19 (define-key global-map [button3] 'url-drag)