original commit: c1856294f50b40050afd14fbae1b7af3f12f2662
This commit is contained in:
Matthew Flatt 2000-03-02 21:32:25 +00:00
parent eec992cba0
commit 42f63a402b

View File

@ -173,7 +173,15 @@
[y (send e get-y)]
[m (if (or (null? last-m)
(send e button-down? 'left))
(let ([m (make-object popup-menu% "T&itle")]
(let ([m (make-object popup-menu% "T&itle"
(lambda (m e)
(unless (is-a? m popup-menu%)
(error "bad menu object"))
(unless (and (is-a? e control-event%)
(memq (send e get-event-type)
'(menu-popdown menu-popdown-none)))
(error "bad event object"))
(printf "popdown ok~n")))]
[make-callback
(let ([id 0])
(lambda ()