nanogui: Making a grid/table
Subject:
Re: [nanogui] Making a grid/table
From:
Michael Drons ####@####.####
Date:
13 May 2006 16:13:25 +0100
Message-Id: <20060513151322.44796.qmail@web30507.mail.mud.yahoo.com>
Sorry, I believe it to be raw nano-x.
I am very new to trying to nanox and have not done
much with X windows either.
Here is a sample of some of the code already written
(not by me).
GrGetFontInfo(widget->data.text.font, &finfo);
h = finfo.height;
descent = h - finfo.baseline;
gc = GrNewGC();
gcr = GrNewGC();
GrSetGCForeground(gc, widget->bg);
GrFillRect(widget->wid, gc, 0, 0, widget->width,
widget->height);
if (widget->data.text.rounded) {
GrSetGCBackground(gc, widget->data.text.text_bg);
} else {
GrSetGCBackground(gc, widget->bg);
}
GrSetGCForeground(gc, widget->data.text.fg);
GrSetGCFont(gc, widget->data.text.font);
GrSetGCForeground(gcr, widget->data.text.text_bg);
Hope this helps so you can give me some help.
-Mike
--- Greg Haerr ####@####.#### wrote:
> : I am trying to make a grid or table using nano-x.
> :Are there any examples that I can look at to help
> me
> out?
>
> Hard to help without knowing which API you're
> running, raw nano-X, win32, FLTK etc etc etc
>
>
>
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> ####@####.####
> For additional commands, e-mail:
> ####@####.####
>
>
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com