1. getWindowRect Function
Hi,
I'm trying to use the getWindowRect function in Win32Lib. I know
that the returning result is a sequence, but when I try to display
this result, all I see are ascii characters beyond 128 (e.g.: ¤Ú)
example:
sequence result
result = getWindowRect(win)
wPuts( win, result[2])
Thanks,
--Bob
2. Re: getWindowRect Function
On Sunday 13 January 2002 03:08 pm, Bob wrote:
> I'm trying to use the getWindowRect function in Win32Lib. I know
> that the returning result is a sequence, but when I try to display
> this result, all I see are ascii characters beyond 128 (e.g.: ¤Ú)
>
> example:
>
> sequence result
> result = getWindowRect(win)
> wPuts( win, result[2])
getWindowRect seems to return 4 integers: {left, right, top, bottom}
That's a sequence of four integers, not ascii characters.
Try printing them as numbers:
wPuts(win, sprintf("Left = %d, Right = %d, Top = %d, Bottom = %d",result))
Regards,
Irv
3. Re: getWindowRect Function
- Posted by timelord at zebra.net
Jan 14, 2002
>Hi,
>
>I'm trying to use the getWindowRect function in Win32Lib. I know
>that the returning result is a sequence, but when I try to display
>this result, all I see are ascii characters beyond 128 (e.g.: ¤Ú)
>
>example:
>
>sequence result
>result = getWindowRect(win)
>wPuts( win, result[2])
>
>Thanks,
>--Bob
replace wPuts(win, result[2])
with
wPrintf(win, "%d", result[2])
>"LIVE LONG AND PROSPEROUS." - quote from 'Startrek'
4. Re: getWindowRect Function
I always thought it was:
"Live long and prosper". No?
Dan Moyer
----- Original Message -----
From: <timelord at zebra.net>
To: "EUforum" <EUforum at topica.com>
Subject: Re: getWindowRect Function
>Hi,
>
>I'm trying to use the getWindowRect function in Win32Lib. I know
>that the returning result is a sequence, but when I try to display
>this result, all I see are ascii characters beyond 128 (e.g.: ¤Ú)
>
>example:
>
>sequence result
>result = getWindowRect(win)
>wPuts( win, result[2])
>
>Thanks,
>--Bob
replace wPuts(win, result[2])
with
wPrintf(win, "%d", result[2])
>"LIVE LONG AND PROSPEROUS." - quote from 'Startrek'