'\"macro stdmacro
.if n .pH g3x.panel_new @(#)panel_new	40.3 of 12/15/89
.\" Copyright 1989 AT&T
.\" ident	"@(#)svid_ti:ti_lib/panel_new	1.3"
.nr X
.if \nX=0 .ds x} panel_new 3X "" "\&"
.if \nX=1 .ds x} panel_new 3X ""
.if \nX=2 .ds x} panel_new 3X "" "\&"
.if \nX=3 .ds x} panel_new "" "" "\&"
.TH \*(x}
.SH NAME
\f4panel_new\f2: \f4 new_panel\f1, \f4del_panel\f1 \- create and destroy \f4panels\fP
.SH SYNOPSIS
.nf
.ft 4
#include <panel.h>
.sp
PANEL *new_panel(WINDOW *win);
.sp 0.5
int del_panel(PANEL *panel);
.ft 1
.fi
.SH DESCRIPTION
\f4new_panel\fP creates a new panel associated with \f2win\f1 and
returns the panel pointer.
The new panel is placed on top of the panel deck.
.PP
\f4del_panel\fP destroys \f2panel\fP, but not its associated
window.
.SH RETURN VALUE
\f4new_panel\fP returns \f4NULL\fP if an error occurs.
.PP
\f4del_win\fP returns \f4OK\fP if successful, \f4ERR\fP
otherwise.
.SH NOTES
.PP
The header file \f4<panel.h>\f1 automatically includes the header file
\f4<curses.h>\f1.
.SH SEE ALSO
.na
\f4curses\fP(3X),
\f4panels\fP(3X),
\f4panel_update\fP(3X).
.ad
