|
|
The following function deletes a panel, but not its associated window. If you want to delete the window, you should use the low-level function delwin.
SYNOPSIS
int del_panel (panel) PANEL panel; /* Panel to be deleted */The ETI panels subsystem assumes that the window associated with each panel always exists.
However, it is not necessary to delete a window after its associated panel is deleted: if you like, you may associate the window with another panel.
Function del_panel returns
OK
if the operation was successful,
ERR
otherwise.
The del_panel operation
fails if the panel pointer is
NULL.
To delete the panel referenced by panel and its associated window referenced by win, you can write
PANEL *panel; WINDOW *win = panel_window(panel);del_panel(panel); delwin(win);