Re: [racket] drag events on a canvas

2011-09-05 Thread Matthew Flatt
The `button-down?' method returns #t only for events that correspond to a button press. The `get-left-down', etc., methods report whether the button is held down during a given event. (This is confusing, but we inherited the behavior originally from wxWidgets years ago.) At Mon, 05 Sep 2011 16:24

[racket] drag events on a canvas

2011-09-05 Thread Marijn
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi list, the following program defines a canvas%-derived that catches mouse events and prints the drag events. Unfortunately I was unable to make it report any drag events. It does report motion events and left-click events when generated by me (curre