[futurebasic] Graphic scaling question

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : November 1997 : Group Archive : Group : All Groups

From: Deepesh Letap <DLetap@...>
Date: Tue, 18 Nov 1997 09:34:06 +0000
>>DIM rect.8
>>rect;8 = (myPict&)+_picFrame
>>
>>I get numbers out like:
>>
>>rect.top% = 14080
>>rect.bottom% = -30768
>>rect.left% = 202
>>rect.right% = 206
>
>Here's what I've been using:
>DIM rect.8
>rect;8 = @myPict&..picFrame%
>
>This is out of the Simple GWorlds Example at the Staz site.


Try the following:

DIM rect.8
rect;8 = [myPict&]+_picFrame

Note the different brackets - square brackets are a short form for PEEK LONG
whereas rounde brackets would be ignored in this scenario. Equivalent to:

DIM rect.8
rect;8 = PEEK LONG(myPict&)+_picFrame

Regards,

Deep