nanogui: text and Fill Rect
Subject:
Re: [nanogui] text and Fill Rect
From:
Alex Holden ####@####.####
Date:
30 May 2002 10:13:09 -0000
Message-Id: <3CF5F8CC.9050100@linuxhacker.org>
Fergal Kelly wrote:
> Hi,
>
> I'm setting text in a rectangular box but will have to change the colour of
> the box from time to time. Is there any simple means of drawing FillRect
> again with a different colour, but without having to redraw the text
> string??
Are you talking about the background of the box or a border around the
box? If the former, then you have to redraw the text because the
FillRect will paint over the old text. Also you will need to change the
background colour of your GC so that the new text is drawn with the new
background colour. If it's a border around the box, then you can easily
draw the border with four rectangles without touching the text in the
middle.
PS. is there any way to tell your mail client to use a real character
set instead of "x-user-defined"? It really confuses Mozilla mail.
--
------------ Alex Holden - http://www.linuxhacker.org ------------
If it doesn't work, you're not hitting it with a big enough hammer