windows overlapping pads

View: New views
2 Messages — Rating Filter:   Alert me  

windows overlapping pads

by Da-Breegster-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I'm running into an issue with overlapping windows. I have a large window that fills the entire screen and has a simple border (with box(0, 0)). A pad is regularly updated and prefresh() is called. The problem is, sometimes there is a popup window in the middle of the screen, and thus, the pad. Whenever the pad is updated, the overlapping window gets wiped out. Usually this window is actually another pad, so I can call its draw function and another prefresh() happens and everything's fine. The problem is, the border from the window framing the second smaller pad gets wiped out. I've tried calling refresh and box(0, 0) again on it, but there's no go. Things are starting to get very messy - ideally, I'd be able to tell a pad to write to a window (rather than the screen directly) and tell the window to refresh and overlap over the larger one. I know of the existence of panels and may source dive to see how they do it, but does anybody know of an easier way to achieve proper overlapping?

_______________________________________________
Bug-ncurses mailing list
Bug-ncurses@...
http://lists.gnu.org/mailman/listinfo/bug-ncurses

Parent Message unknown re: windows overlapping pads

by Thomas Dickey-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


It might work to use touchwin() on the pad that's to be repainted
(I don't recall using that on a pad, but it's a workable solution
for normal windows).

--
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net


_______________________________________________
Bug-ncurses mailing list
Bug-ncurses@...
http://lists.gnu.org/mailman/listinfo/bug-ncurses
LightInTheBox - Buy quality products at wholesale price!