Hi guys, 
What does “enable” do for choice%? I’ve noticed that other wedges prevent 
interaction when enabled #f, but not choice%. Here’s an example:

#lang racket

(require racket/gui)

(define frame (new frame%
                   [label "Testing"]
                   [x 0]
                   [y 0]
                   [width 300]
                   [height 300]))
(new choice%
     [parent frame]
     [choices (list "A" "B" "C")]
     [label "choose one..."]
     [enabled #f]
     [callback (λ (w e) (printf "selected: ~a~%" (send w get-selection)))])
(send frame show #t)

Is this how it’s supposed to behave? How do I prevent interaction with this 
widget in that case?

Thanks!

-Kevin

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to