[futurebasic] Re: [FB] Still having trouble with GLOBALTOLOCAL

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

From: Alain Pastor <apastor@...>
Date: Wed, 08 Sep 1999 08:46:56 +0200

Mark Goodes wrote:

> I'd like to accomplish a simple task:
>
> 1.  Set and paint rectangle in the current port.
> 2.  Change the port to the desktop port (cwmgrport)
> 3.  Paint the rectangle in exactly the same place that it originally
> was.
>
> To do this, I tried using the following intermediate steps:
> 1.  Set and paint rectangle in the current port.
> 1a.  Call LOCALTOGLOBAL on the rectangle's coordinates.
> 2.  Change the port to the desktop port (cwmgrport)
> 2b.  Call GLOBALTOLOCAL on the rectangle's coordinates.
> 3.  Paint the rectangle in exactly the same place that it originally
> was.
>
> But the rectangle just won't go where I want it to go.  Anyone know how
> to do this properly?
>
> Mark

Hello Mark,

I don't know if it makes sense, but have you tried to skip step 2b?
I believe that LOCALTOGLOBAL gives the coordinates relative to the whole screen.

Alain