home *** CD-ROM | disk | FTP | other *** search
- Path: 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
-
- 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
-