nanogui: Making a grid/table
Subject:
Re: [nanogui] Making a grid/table
From:
"Greg Haerr" ####@####.####
Date:
15 May 2006 01:57:28 +0100
Message-Id: <1f3701c677ba$28c99600$6401a8c0@winXP>
: Here is a sample of some of the code already written
: (not by me).
Unfortunately, the code sample below doesn't
actually draw _anything_ except fill a rectangle.
I suggest you read the Nano-X programming
tutorial on the web site
http://microwindows.org/Nano-XTutorial.html
to get more information on low-level nano-X
programming.
Regards,
Greg
:
: 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