bug-ncurses
[Top][All Lists]
Advanced

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

Re: Problems with overlapping windows


From: Jiri Fogl
Subject: Re: Problems with overlapping windows
Date: Mon, 16 Mar 2009 23:18:21 +0100
User-agent: KMail/1.9.10

I will examine everything according to your advices as soon as I'll get to my 
development computer (I'm elsewhere now), but I think the problem must be in 
newwin() call, because when I get that "fail-window", I'm not able to draw into 
it.

As you can see, there is a box() call after newwin() and before creating a 
panel 
(it is in if() block, but for testing purposes that if is always true). If the 
box doesn't show up in the screen, application is going to segfault. Therefore 
if the problem was in new_panel(), box() would always work and draw something 
on the screen.

About refactoring - you're right, this code isn't optimal, it is only my 
studying playground, so I don't care about code duplicity to much. Before I 
will write final application, I'll design it carefully, but before that I need 
to know exactly how every individual component I'll use works.

Jiri





reply via email to

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