LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 06-03-2004, 10:28 PM   #1
kamel
LQ Newbie
 
Registered: May 2004
Posts: 13

Rep: Reputation: 0
ncurses windows leaving trails


Im trying to write an ncurses program with windows and am having trouble:

I have two windows:

-stdscr
-my own defined window named StatusPanel

I am resizing the window to create a similar "hiding" effect like nAIM's buddy list. Here is how I am resizing it:

-delete the window
-spawn a new window with the new sizes (smaller than before, there is no problem making the window bigger)
-redraw the status information to it (program makes SURE the drawn data isnt longer than the width of the window with strncpy)
-refresh the windows:
first refresh();
then wrefresh(winStatusBar);

and it leaves trails behind. ~.~
also it erases the text in stdscr that is underneath the StatusPanel. Is there any way to stop that from happening too?


ps: ive tried refreshing this way too but to no avail:
wnoutrefresh(stdscr);
wnoutrefresh(winStatusBar);
doupdate();

ive also, just for the heck of it, I tried reversing the refresh statements hoping that would work for some strange reason, it didn't :P
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Ncurses and full windows Ephracis Programming 4 11-08-2004 06:50 AM
suse 9.1, wpc11 v.4, & my dreams of leaving windows behind me zhuangshi Linux - Wireless Networking 12 07-22-2004 08:06 PM
How do I properly do overlapping windows in NCURSES kamel Programming 0 06-04-2004 09:52 PM
Ncurses and a few windows krajzega Programming 1 05-13-2004 10:51 PM
WINDOWS in ncurses, newwin limbo Nevion Programming 6 12-10-2003 01:20 AM


All times are GMT -5. The time now is 09:52 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration