nanogui: creating listbox


Previous by date: 20 Apr 2006 17:22:34 +0100 creating listbox, Robbie
Next by date: 20 Apr 2006 17:22:34 +0100 Re: creating listbox, Robbie
Previous in thread: 20 Apr 2006 17:22:34 +0100 creating listbox, Robbie
Next in thread: 20 Apr 2006 17:22:34 +0100 Re: creating listbox, Robbie

Subject: Re: creating listbox
From: "Jordan Crouse" ####@####.####
Date: 20 Apr 2006 17:22:34 +0100
Message-Id: <20060420171511.GB31770@cosmic.amd.com>

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


Previous by date: 20 Apr 2006 17:22:34 +0100 creating listbox, Robbie
Next by date: 20 Apr 2006 17:22:34 +0100 Re: creating listbox, Robbie
Previous in thread: 20 Apr 2006 17:22:34 +0100 creating listbox, Robbie
Next in thread: 20 Apr 2006 17:22:34 +0100 Re: creating listbox, Robbie


Powered by ezmlm-browse 0.20.