[racket] list-box%: cannot click on first item

From: Laurent (laurent.orseau at gmail.com)
Date: Thu Sep 12 09:59:29 EDT 2013

In a list-box% containing only 1 item, clicking on the item does not
trigger the callback (Ubuntu 13.04).

Is it the same on other platforms?
Does anyone know any way around this, or a way to fix this?

Thanks,
Laurent


Example:
#lang racket/gui
(define my-frame (new frame% [label "my-frame"]
                      [min-width 200] [min-height 200]))

(define lb (new list-box% [parent my-frame]
                [label "values"]
                [choices '("a")]
                [callback (λ(lb ev)
                            (displayln "Callback called."))]))

(send my-frame show #t)

; Then try to click on "a"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20130912/67385d17/attachment.html>

Posted on the users mailing list.