[Top][All Lists]

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

Re: color in subwindows

From: Thomas Dickey
Subject: Re: color in subwindows
Date: Mon, 16 Jun 2003 19:17:51 -0400
User-agent: Mutt/1.3.28i

On Mon, Jun 16, 2003 at 05:05:30PM -0600, D. Stimits wrote:
> I'm trying to use wbkgd(), with a different wbkgd() in different 
> subwindows, recursively. These are also inside of a panel. So I might 
> have a panel with a subwindow that has a border, and a useful subwindow 
> inside of the border; this in turn might have a temporary "pop up" style 
> subwindow inside of it, and I want to set wbkgd() separately for each 
> subwindow. Unfortunately, I seem to be doing something wrong, and the 
> final wbkgd() (although called for the specific subwindow and not for 
> the parent window) seems to be the color that results for all windows up 
> to the parent. I wanted to verify that ncurses should be able to set 
> (separately) the background properties of each subwindow within a 
> parent, recursively. Should I be able to set colors up like this 
> (therefore my code is in error), or am I simply finding a restriction?

I always have to check the manpage to keep these straight.
If you're using subwin rather than newwin, that's likely the

       Calling subwin creates and returns a pointer to a new win-
       dow with the given number of lines, nlines,  and  columns,
       ncols.   The  window  is at position (begin_y, begin_x) on
       the screen.  (This position is relative to the screen, and
       not to the window orig.)  The window is made in the middle
       of the window orig, so that changes  made  to  one  window
       will  affect  both  windows.   The subwindow shares memory
       with the window orig.  When using this routine, it is nec-
       essary  to call touchwin or touchline on orig before call-
       ing wrefresh on the subwindow.

Thomas E. Dickey <address@hidden>

reply via email to

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