[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Chicken-users] sx:set-button-up-cb, sx:set-button-down-cb
From: |
Stephan Lukits |
Subject: |
[Chicken-users] sx:set-button-up-cb, sx:set-button-down-cb |
Date: |
Thu, 29 Nov 2007 07:58:12 +0100 |
User-agent: |
Thunderbird 2.0.0.9 (X11/20071031) |
Hi,
calling sx:set-button-up-cb, sx:set-button-down-cb
end with:
Error: unbound variable: sx_mousebutton_cb
Call history:
##sys#require
test-sx.scm: 18 sx:make-button
test-sx.scm: 19 sx:make-draw-area
test-sx.scm: 20 sx:get-top-widget
test-sx.scm: 21 sx:set-widget-pos
test-sx.scm: 22 sx:set-keypress-cb
test-sx.scm: 23 sx:set-button-up-cb <--
How could I determine which button was pressed,
since the callback signature of
BUTTONPROC = (lambda () ...)
does not provide an argument which tells me.
Finally a cosmetic issue: the callback signature
for MOTIONPROC is missing.
MOTIONPROC (lambda (x y) ...)
worked for me.
- [Chicken-users] sx:set-button-up-cb, sx:set-button-down-cb,
Stephan Lukits <=