bug-ncurses
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: panel question


From: Thomas Dickey
Subject: Re: panel question
Date: Thu, 27 Dec 2001 20:22:22 -0500
User-agent: Mutt/1.2.5i

On Thu, Dec 27, 2001 at 04:31:24PM -0800, Peter Jay Salzman wrote:
> > > if so, how does one go about creating, say, a popup window which may be
> > > stacked on top of multiple WINDOWS simultaneously?  not that i want to
> > > do this - i'm just curious about the answer.
> > 
> > man panel
> 
> oh -- i guess the trick is to create overlapping WINDOW's, and assign
> the panels to the overlapping windows?

yes - basically panels are used to force specific ordering of overlapping
windows.  It's something that (with 20-20 hindsight) seems obvious that
it should have been part of the curses library, but back when it was
originally designed probably wasn't obvious.  For simple cases you can
use wnoutrefresh and touchwin to get the same effect (I do that in dialog
for instance to avoid a dependency on the panel library).

> it never occured to me that WINDOWS could overlap.

they can, and you can move them around on the screen.

-- 
Thomas E. Dickey <address@hidden>
http://invisible-island.net
ftp://invisible-island.net



reply via email to

[Prev in Thread] Current Thread [Next in Thread]