chicken-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Chicken-users] sx:set-button-up-cb, sx:set-button-down-cb


From: felix winkelmann
Subject: Re: [Chicken-users] sx:set-button-up-cb, sx:set-button-down-cb
Date: Thu, 29 Nov 2007 09:03:34 +0100

On Nov 29, 2007 7:58 AM, Stephan Lukits <address@hidden> wrote:
> 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                   <--
>

Arg. Misspelled callback. Fixed.

>
> How could I determine which button was pressed,
> since the callback signature of
>
> BUTTONPROC =    (lambda () ...)
>
> does not provide an argument which tells me.
>

I have no idea. AFAIK, SX doesn't support this.

>
> Finally a cosmetic issue: the callback signature
> for MOTIONPROC is missing.
>
> MOTIONPROC (lambda (x y) ...)
>
> worked for me.
>

Indeed.

Thanks, Stephan. A new version is checked in.


cheers,
felix




reply via email to

[Prev in Thread] Current Thread [Next in Thread]