[futurebasic] Re: [FB] moving the origin

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : March 2002 : Group Archive : Group : All Groups

From: gnome <gnome@...>
Date: Mon, 25 Mar 2002 18:47:24 +0100
Le lundi 25 mars 2002, à 04:36 , Eugen Rosu a écrit :

> That’s right, <<CALL SETORIGIN(x,y)>> moves the coordinates 
> somewhere on
> the window, but unfortunately it doesn’t solve my problem. For 
> instance,
> I wont to draw the face of a clock, the minutes, the hours, I wont to
> move the hands of the clock, etc. Using <<CALL SETORIGIN(x,y)>> I can
> draw only in a quarter of the window (lets say:
>
> ‘ WINDOW 1, "My Clock",(0,0)-(200,200)
> ‘ CALL SETORIGIN(-100,-100),
>
> the origin is in the middle of the window, but I can see only the
> right-down quarter).

if i recall you asked how to move the origin.
this acts as if the window started at the new origine point!
so all of this is logical.

2 approaches. first is a maybe, second is a cert.

- i suspect that the call sets a new cliprect. by grabbing this
and setting it back to all the window you should see your drawing again.

- just offset all your drawing code by 'window( _width)<<1' for the
horizontal coord, and 'window( _height)<<1' for the vertical coord.

hth,
:-j