🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.sys.next.programmer
3 messages
3 total messages Started by Andy McConnell Wed, 22 Jul 1992 16:11
NXRectFill - How to use this correctly?
#178
Author: Andy McConnell
Date: Wed, 22 Jul 1992 16:11
13 lines
933 bytes
I need some help in drawing the background of an NXRect.  I have these two  
lines in my code:

 	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.

Is there something I'm missing?

				- Andy McConnell
Re: NXRectFill - How to use this correctly?
#189
Author: 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
Re: NXRectFill - How to use this correctly?
#218
Author: Hans Peter Geiser
Date: Fri, 24 Jul 1992 08:23
11 lines
732 bytes
>  	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.
> 

Are you doing the NXRectFill() in a drawSelf:: method, or - if not - have you  
done the lockFocus on the View you want to fill?

Hans-Peter Geiser 
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads