|
Contents | Previous | Next | Subchapters |
| Syntax |
show(caption)handle)
|
| See Also | hide , iconify |
If handle is an integer column vector with two elements,
the control specified by handle is enabled
(i.e., not grayed out),
where handle is the value returned by the call to
addcontrol
that created the control.
Controls with the bitmap
style cannot be enabled.
hide("Graphic 0")
the default graphics window will disappear. You can use
show("Graphic 0")
to make the window reappear.
clear
#
Caption = "Test Dialog"
geometry = [100, 100, 150, 100]
callback = "delwin(Caption);"
adddialog(Caption, geometry, callback);
#
geometry = [20, 20, 60, 20]
name = "Done"
callback = "delwin(Caption);"
Handle = addcontrol(Caption, geometry, "checkbox", name, callback)
setcontrol(Handle, false);
hide(Handle)
#
geometry = [40, 50, 70, 20]
name = "Enable"
callback = "show(Handle);"
addcontrol(Caption, geometry, "pushbutton", name, callback);