[futurebasic] Re: [FB] Learning FB2 Toolbox - GWorlds

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

From: Robert Covington <artlythere@...>
Date: Wed, 15 Sep 2004 13:11:26 -0400
On Wednesday, September 15, 2004, at 11:57  AM, Richard Goodman wrote:

> Bruce, (BrucesFB3@...)
>  You wrote:
> <<<Frank T's Learning FB2 Toolbox has a Demo on using
> GWorlds. pp. 139-142..>>>
>
> It happens that I'm studying that very program. It's named "Drag icon 
> with GWorlds", right?  However, in my copy of Turovich's book, it's on 
> page 113, not page 139. Are you using the version available on line? 
> If so, it appears that the page numbering is different than that of 
> the paperback version.
>
> In any case, I haven't gotten the code to work properly in FB-3 with 
> OS 8.6 yet.
> One problem I found was with rectangles and the discussion following 
> your post will be of value. However, I think I located another problem 
> with the code, but I haven't gotten around to fixing it yet.
>
> It's the following line:
> CALL COPYBITS(#bgGWPtr+2, #stageGWPtr+2, MyRect, MyRect, _srcCopy, 0)
>
> This is right out of the book. Note that the designations for the 
> source and destination rects are identical. I don't think that's 
> cricket. Perhaps that has been corrected (assuming it is an error) in 
> the on-line version.
>
> If I get the code working, I'll let you know.
>
> If you get the code working, I'd appreciate receiving the code, myself.
>
> Richard

Same rects are common when sending a refresh buffer from one Gworld to 
another before you redraw into the destination one, the new sprite or 
parcel in question on top.
And they are correct in the case of the icon drag widget actually for 
the copying going on there. Now you wouldn't want them similar (unless 
at upper top left for a starting position) when doing source and 
destination for say the iconGW and the dest rect it's going to in the 
larger scratch GWorld.

rc