Where is the top/bottom of the screen?
Igor Couto
igor at pixelmedia.com.au
Mon Dec 15 00:43:17 EST 2003
Dear Jacqueline,
On 15/12/2003, at 4:31 PM, J. Landman Gay wrote:
> On 12/14/03 11:16 PM, Igor Couto wrote:
>
>> Thanks for the hint! I had already seen this, however, in my MacOS X
>> system, with my screen set to a resolution of 1280x1024, the
>> windowBoundingRect reports: "78,92,1205,1024".
>> Hmmm. I can understand "1024" (the bottom of the screen), and "1205"
>> (the right of the screen minus the Dock - I guess). But why "78" and
>> "92" for left and top, respectively?
>> I tried hiding the toolbar (both Text and Icons), thinking that it
>> might be taking Revolution's own interface elements (such as the
>> palettes) into consideration before reporting the 'useable' area of
>> the screen, but no... nothing changed...
>
> Your hunch is right -- you are getting back the windowBoundingRect
> after it is adjusted for Rev's palettes.
Thank you for the tip!
I built a little app with the test button, as you suggested, and much
to my delight, it reported the windowBoundingRect on the standalone as
"0,22,1205,1024". Sounds right! I can use it!
Many thanks!
Igor
igor at pixelmedia.com.au
More information about the use-livecode
mailing list