-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Ho Antonio,
you didn't specify a version or give actual output of your program. On my racket (git version of perhaps one or two weeks old) I don't see what you describe. If I run the program, an (annoyingly small) window is created and if I click and release to increase the slider from 0 to 1 the interactions window shows: (object:slider% ...) slider@1307345547311: 1 > Marijn On 06/03/11 18:19, Antonio Menezes Leitao wrote: > Hi, > > I noticed a strange behavior in Racket slider% widget. > It seems that when I stop dragging the slider it makes two additional > unnecessary callback calls. This behavior is visible in the following > example: > > (define frame (new frame% [label "Example"])) > > (new slider% [parent frame] > [label "Test"] > [min-value 0] > [max-value 10] > [callback (lambda (slider event) > (display > (format "~a@~a: ~a~%" > (send event get-event-type) > (send event get-time-stamp) > (send slider get-value))))]) > > (send frame show #t) > > Even a single click in the slider calls the callback twice > when the mouse button is released. > > I also noticed that this behavior happens both with Racket in > Windows 7 and with the older DrScheme in Windows XP. > > Is this a bug or a feature? > > Thanks, > António Leitão > > _________________________________________________ > For list-related administrative tasks: > http://lists.racket-lang.org/listinfo/users -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.17 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk3sg6sACgkQp/VmCx0OL2zD/gCeN++IT7QPs6E+MQ0lv8u7+Ii9 LskAn26sUmIQr1OJ/qZtS+4qQ3N/5ibz =oxO/ -----END PGP SIGNATURE----- _________________________________________________ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/users

