nanogui: creating listbox


Previous by date: 20 Apr 2006 18:13:12 +0100 Re: creating listbox, Robbie
Next by date: 20 Apr 2006 18:13:12 +0100 Re: creating listbox, Greg Haerr
Previous in thread: 20 Apr 2006 18:13:12 +0100 Re: creating listbox, Robbie
Next in thread: 20 Apr 2006 18:13:12 +0100 Re: creating listbox, Greg Haerr

Subject: [nanogui] Re: creating listbox
From: "Robbie" ####@####.####
Date: 20 Apr 2006 18:13:12 +0100
Message-Id: <20060420171259.524F4BD617@xprdmxin.myway.com>



> -----Original Message-----
> From: Robbie ####@####.####
> Sent: Thursday, April 20, 2006 11:36 AM
> To: ####@####.####
> Cc: ####@####.####
> Subject: [nanogui] Re: creating listbox
> 
> 
> > -----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.
> 
Jordon.....Also,
The funny thing about RECT is that I can define a rectangle in a window but when I want to draw in that rect, what do I do?

Do I simply draw within the rect area I specify( the real question here is how to specify that region?).

What about Regions? Can that help me or break me?

Thanks,
--Robbie 


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



Previous by date: 20 Apr 2006 18:13:12 +0100 Re: creating listbox, Robbie
Next by date: 20 Apr 2006 18:13:12 +0100 Re: creating listbox, Greg Haerr
Previous in thread: 20 Apr 2006 18:13:12 +0100 Re: creating listbox, Robbie
Next in thread: 20 Apr 2006 18:13:12 +0100 Re: creating listbox, Greg Haerr


Powered by ezmlm-browse 0.20.