home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / sys / next / programm / 5185 < prev    next >
Encoding:
Internet Message Format  |  1992-07-22  |  1.3 KB

  1. Path: sparky!uunet!rosie!aozer
  2. From: aozer@next.com (Ali Ozer)
  3. Newsgroups: comp.sys.next.programmer
  4. Subject: Re: NXRectFill - How to use this correctly?
  5. Keywords: NXRect, NXRectFill, Color, NXColor
  6. Message-ID: <4402@rosie.NeXT.COM>
  7. Date: 23 Jul 92 02:54:13 GMT
  8. References: <1992Jul22.161151.7557@cs.rose-hulman.edu>
  9. Sender: news@NeXT.COM
  10. Organization: Next Computer, Inc.
  11. Lines: 18
  12.  
  13. In article <1992Jul22.161151.7557@cs.rose-hulman.edu> Andy McConnell writes:
  14. >     NXSetColor( GaugeDat.backColor );
  15. >    NXRectFill(&bounds);
  16. >GaugeDat.backColor is just an NXColor.  However, this little ditty does  
  17. >absolutely nothing that I can see, no matter how backColor is set.
  18.  
  19. This should just work. Perhaps you are not focused properly on a view? You
  20. can use the "showps" command in gdb to cause the kit to show you all the
  21. PostScript it generates; you can "showps" right before those two lines and
  22. then "shownops" and see if the generated PostScript you get is reasonable.
  23.  
  24. One caution about stepping in gdb, though: Just because you execute a line 
  25. which generates some PostScript, and you actually see it being generated, 
  26. (thanks to "showps"), it doesn't mean the line got executed by the 
  27. windowserver. You might need to explicitly flush by typing "flush" or
  28. "p NXPing()".
  29.  
  30. Ali, Ali_Ozer@NeXT.com
  31.