[<<] [<] Page 1 of 1 [>] [>>] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Subject:
Making a grid/table
From: Michael Drons ####@####.#### Date: 10 May 2006 20:45:24 +0100 Message-Id: <20060510194517.82677.qmail@web30509.mail.mud.yahoo.com> 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? Thank you, Mike __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Subject:
Re: [nanogui] Making a grid/table
From: "Greg Haerr" ####@####.#### Date: 12 May 2006 00:37:52 +0100 Message-Id: <395501c67553$ad9b9db0$0300a8c0@RDP> : 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 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
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 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
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 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[<<] [<] Page 1 of 1 [>] [>>] |