<div dir="ltr"><div><div>In a list-box% containing only 1 item, clicking on the item does not trigger the callback (Ubuntu 13.04).<br><br></div><div>Is it the same on other platforms?<br></div><div>Does anyone know any way around this, or a way to fix this?<br>
</div><div><br>Thanks, <br>Laurent<br></div><div><br></div><br></div>Example:<br>#lang racket/gui<br>(define my-frame (new frame% [label "my-frame"] <br> [min-width 200] [min-height 200]))<br>
<br>(define lb (new list-box% [parent my-frame]<br> [label "values"]<br> [choices '("a")]<br> [callback (ë(lb ev) <br> (displayln "Callback called."))]))<br>
<br>(send my-frame show #t)<br><br><div>; Then try to click on "a"<br></div><div><div><br></div></div></div>