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/86b63058-bbd4-f0d0-e9d3-af625c3b85c9%40comcast.net.