BUTTONENABLEname
state
Enables or disables the button identified by name
.
If state
equals TRUE, then the button is enabled.
If state
equals FALSE, then the button is disabled.
WINDOWCREATE "main "mywindow "mytitle 0 0 100 100 [] BUTTONCREATE "mywindow "mybutton "PUSH 25 25 25 25 [PRINT "pushed] BUTTONENABLE "mybutton "False
The button is now disabled
BUTTONENABLE "mybutton "True WINDOWDELETE "mywindow