nanogui: creating listbox
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