Contents Previous Next Subchapters

Normalizing A Window Or Enabling A Control
Syntax show(caption)
show(
handle)
See Also hide , iconify

Description
If caption is a character row vector, the window with the specified caption is displayed in normal mode. If caption is "toolbar" and no such window exists, the O-Matrix toolbar is enabled (i.e., not grayed out). If caption is "omatrix", the main O-Matrix application is made visible.

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.

Caption Example
If you enter
     hide("Graphic 0")
the default graphics window will disappear. You can use
     show("Graphic 0")
to make the window reappear.

Handle Example
The following program creates a dialog window with a check box labeled "Done" and a push button labeled "Enable". When the button is pressed, the check box is enabled. When the check box is checked, the dialog is deleted.

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);