Goto: 4C Home | 4C Docs | System PCLs List sys.show_panel()

sys.show_panel()

Purpose:
sys.show_panel() is used to show, hide, enable, or disable a panel.
Usage:
ret = sys.show_panel(<pnlcdef>,<showflags>);
Arguments:

integer <pnlcdef> - the cdef of the panel.

integer <showflags> - Combinations of SF_SHOW, SF_HIDE, SF_ENABLE, SF_DISABLE, SF_IGNORE, SF_NOIGNORE, SF_NOSHOWPARENT
Returns:
integer <ret>
0 - OK
-1 - Not a screen program, invalid pnlcdef, or client version not up to date.
Where Used:
sys.show_panel() can be called from any PCL in a Panel program except the InitPCL, EndPCL, and ExitPCL.
Example:
See the demo.hrc.2, demo.ovly.2, demo.ovly.3, and demo.tabf.3 demo programs for examples. An example of using sys.show_panel() with the SF_NOSHOWPARENT flag is in the bootstrap program sys.df.fm.pnl.
Description:
sys.show_panel() is used to show, hide, enable, or disable a panel. The way sys.show_panel() works depends on which showflags are specifed.



In the case of tabfolder or overlay sub panels, making one sub panel visible will result in making any sibling sub panels invisible.

Hiding a panel will not automatically make any other panels visible.
Bugs/Features/Comments:
See Also:
sys.show_dfield()
sys.show_fkey()


Back to Top