nanogui: creating listbox


Previous by date: 20 Apr 2006 17:35:53 +0100 Re: creating listbox, Jordan Crouse
Next by date: 20 Apr 2006 17:35:53 +0100 Re: creating listbox, Robbie
Previous in thread: 20 Apr 2006 17:35:53 +0100 Re: creating listbox, Jordan Crouse
Next in thread: 20 Apr 2006 17:35:53 +0100 Re: creating listbox, Robbie

Subject: [nanogui] Re: creating listbox
From: "Robbie" ####@####.####
Date: 20 Apr 2006 17:35:53 +0100
Message-Id: <20060420163550.7B819BD6FF@xprdmxin.myway.com>

> -----Original Message-----
> From: Jordan Crouse ####@####.####
> Sent: Thursday, April 20, 2006 12:15 PM
> To: Robbie
> Cc: ####@####.####
> Subject: [nanogui] Re: creating listbox
> 
> On 20/04/06 12:08 -0400, Robbie wrote:
> >
> > If I create a window, It seems like I'll have to create six other
> windows, all in the previously created one to be able to change the
> attributes.
> > Is there a better way to do this I don't know about?
> 
> The only time you want to create multiple windows is if you need to
> monitor
> input events seperately for each item.  Otherwise, you should just create
> one
> window, and draw the list items differently.  There are many ways to
> change
> the colors of the drawn items.
> 
> For example, you can set the forground and background colors of the
> drawn text, or you can draw a rectangle and then draw the text on top of
> it.
> You can do much of this offscreen and avoid flickering.
> 
> Jordan
> 

I've tried changing FG and BG of GrText using the GrSetGC(FG/BG) functions on the fonts gc and it didn't have any effect. I tried that multiple times to no success and that's when I thought I'll have to have seperate draw IDs' or windows for each item. All this was done on a single window.


_______________________________________________
Join Excite! - http://www.excite.com
The most personalized portal on the Web!



Previous by date: 20 Apr 2006 17:35:53 +0100 Re: creating listbox, Jordan Crouse
Next by date: 20 Apr 2006 17:35:53 +0100 Re: creating listbox, Robbie
Previous in thread: 20 Apr 2006 17:35:53 +0100 Re: creating listbox, Jordan Crouse
Next in thread: 20 Apr 2006 17:35:53 +0100 Re: creating listbox, Robbie


Powered by ezmlm-browse 0.20.