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