🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.next.programmer
Article #189

Re: NXRectFill - How to use this correctly?

#189
From: Ali Ozer
Date: Thu, 23 Jul 1992 02:54
18 lines
1320 bytes
In article <1992Jul22.161151.7557@cs.rose-hulman.edu> Andy McConnell writes:
> 	NXSetColor( GaugeDat.backColor );
>	NXRectFill(&bounds);
>GaugeDat.backColor is just an NXColor.  However, this little ditty does  
>absolutely nothing that I can see, no matter how backColor is set.

This should just work. Perhaps you are not focused properly on a view? You
can use the "showps" command in gdb to cause the kit to show you all the
PostScript it generates; you can "showps" right before those two lines and
then "shownops" and see if the generated PostScript you get is reasonable.

One caution about stepping in gdb, though: Just because you execute a line 
which generates some PostScript, and you actually see it being generated, 
(thanks to "showps"), it doesn't mean the line got executed by the 
windowserver. You might need to explicitly flush by typing "flush" or
"p NXPing()".

Ali, Ali_Ozer@NeXT.com
Technical Details
Message-ID: <4402@rosie.NeXT.COM>
Path: arc1-ca.pugleaf.net!sparky!uunet!rosie!aozer
References: <1992Jul22.161151.7557@cs.rose-hulman.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!rosie!aozer
From: aozer@next.com (Ali Ozer)
Newsgroups: comp.sys.next.programmer
Subject: Re: NXRectFill - How to use this correctly?
Keywords: NXRect, NXRectFill, Color, NXColor
Message-ID: <4402@rosie.NeXT.COM>
Date: 23 Jul 92 02:54:13 GMT
References: <1992Jul22.161151.7557@cs.rose-hulman.edu>
Sender: news@NeXT.COM
Organization: Next Computer, Inc.
Lines: 18