Perfect, thanks. I thought I explored all the relevant interfaces but I 
must have overlooked window<%>.

On Friday, September 3, 2021 at 1:00:37 AM UTC-5 gneuner2 wrote:

>
>
> On 9/2/2021 5:39 PM, Ryan Kramer wrote:
>
> I see that button% has an `enabled` field, but I'm not seeing anything for 
> slider%, text-field%, and choice%. If I want to disable these elements, do 
> I have to roll my own enable/disable logic? Also, is there a way to change 
> a button's `enabled` status after it is created? Thanks.
>
>
> All the controls respond to window<%> messages: e.g., (send *mybutton*  
> enable #t)
>     https://docs.racket-lang.org/gui/window___.html
>
> Whenever possible, you should try to use object messaging / method calls 
> rather than directly messing with fields in the objects (even if the fields 
> are public).
>     https://docs.racket-lang.org/reference/ivaraccess.html
>
>
>
>

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/35e042ba-c3d4-4d77-807f-6f4ee4965ba0n%40googlegroups.com.

Reply via email to