realbasic-nug
[Top] [All Lists]

Re: Keeping Windows on Screen Class

To: REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: Keeping Windows on Screen Class
From: Terry Ford <tmford at shaw dot ca>
Date: Fri, 29 Feb 2008 15:13:11 -0800
Delivered-to: listarchive at realsoftware dot com
Delivered-to: realbasic-nug at lists dot realsoftware dot com
References: <mailman dot 10912 dot 1204310217 dot 9216 dot realbasic-nug at lists dot realsoftware dot com> <p06240800c3ee3cd0c0d2 at [192 dot 168 dot 0 dot 111]> <08773FA0-DA2C-497F-80CD-71C095FDF8D3 at inspiringapps dot com>
On Feb 29, 2008, at 3:06 PM, Joe Strout wrote:

> On Feb 29, 2008, at 3:56 PM, Stephen Dodd wrote:
>
>> assuming the true height of a window is
>> Height + TitleBarHeight + MenuBarHeightIfWindows
>
> No, because Top is not the top of the title bar; it's the top of the
> content area (below the title bar and Windows menu bar).  So, to get
> the bottom of the window, you use Top + Height.

I believe you can use a declare to get the height of the title bar  
(which varies with the Frame property) but an estimate usually suffices.
The top of the content area is more important as this doesn't change  
with the type of window. To have it be different would cause many  
more problems orienting your x,y code in a window.

Terry

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>


<Prev in Thread] Current Thread [Next in Thread>