nanogui: rewriting texts


Previous by date: 14 Jun 2006 22:53:24 +0100 Re: rewriting texts, Pete Klemm
Next by date: 14 Jun 2006 22:53:24 +0100 Re: rewriting texts, Pete Klemm
Previous in thread: 14 Jun 2006 22:53:24 +0100 Re: rewriting texts, Pete Klemm
Next in thread: 14 Jun 2006 22:53:24 +0100 Re: rewriting texts, Pete Klemm

Subject: Re: [nanogui] rewriting texts
From: Junior ####@####.####
Date: 14 Jun 2006 22:53:24 +0100
Message-Id: <DD0FAE8AACC.000007B2ejr@inbox.com>

> -----Original Message-----
> From: ####@####.####
> Sent: Wed, 14 Jun 2006 16:45:57 -0500
> To: ####@####.####
> Subject: Re: [nanogui] rewriting texts
> 
> Junior wrote:
>> Hi,
>> I've had this problem before that I work around by rewriting the entire
>> screen and I don't think I should have to do that but I do need someone
>> to point me in the right direction.
>> On this example I use GrCopyArea and no Expose event except for the
>> initial window creation.
>> 
>> I have a window and on it I display a text, say 15 chars long with a fg
>> and bg colour. Later at that same coordinate, I display a text, 15 chars
>> (10 chars actual text and 5 blank spaces) with the same fg and bg
>> colour.
>> In this case I expect the new text to overwrite the old text but it does
>> not. Instead it's supperimposed on it. Initially I repaint the screen
>> and write the new text but I don't think that should be necessary.
>> 
> Did you set the background to opaque?

Background for what? The text? The background of the text could be changed at any time and not that necessarily that of the window background.


>> Is there a way around this problem?
>> I think it may be because I'm using GrCopy, but I don't see it acting
>> dfiifernt if I use any other method.
>> 
>> Any ideas?
>> 
>> Thanks.
>> --Jr
>>

____________________________________________________________
Inbox.com Photos - Share your photos with your friends and family!
Visit http://www.inbox.com/photosharing to find out more!

Previous by date: 14 Jun 2006 22:53:24 +0100 Re: rewriting texts, Pete Klemm
Next by date: 14 Jun 2006 22:53:24 +0100 Re: rewriting texts, Pete Klemm
Previous in thread: 14 Jun 2006 22:53:24 +0100 Re: rewriting texts, Pete Klemm
Next in thread: 14 Jun 2006 22:53:24 +0100 Re: rewriting texts, Pete Klemm


Powered by ezmlm-browse 0.20.