[futurebasic] Re: [FB] Two queries re PG tutorial ButterFlame

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : December 2004 : Group Archive : Group : All Groups

From: AlStaff@...
Date: Sun, 5 Dec 2004 12:33:17 EST
>       t;8 = [resHndl&]+_picFrame                        '_picFrame = 2
>       CALL OFFSETRECT(t,-l,-t)
> 
-- snip --

> Question 2)  What is the function of the last line? No part of the
> PICT resource has yet been drawn to a GW or other grafPort. That is,
> there has been no call to SETRECT.  How can the PICT's rect be offset
> if it's not yet realized.  I hope I'm communicating my question
> properly.
> 

The stored coordinates of a PICT don't always start at 0,0 (usually but not 
always). The last line subtracts any non 0 amounts to make sure the coordinates 
start at 0,0 so when you later draw the picture at rect t, it will be where 
you expect it.


Al Staffieri Jr.

AlStaff@...
http://members.aol.com/AlStaff/index.html

--
To unsubscribe, send ANY message to: futurebasic-unsubscribe@...