DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 
ETI panels

Deleting panels

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.


NOTE: If you want to delete a panel and its associated window, make sure that you delete the panel first, not the window. Your call to del_panel should precede your call to delwin.

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


Previous topic: Example using panel user pointer

© 2004 The SCO Group, Inc. All rights reserved.
UnixWare 7 Release 7.1.4 - 27 April 2004