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: Joe Strout <joe at inspiringapps dot com>
Date: Fri, 29 Feb 2008 16:06:03 -0700
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]>
On Feb 29, 2008, at 3:56 PM, Stephen Dodd wrote:

> You say:
>
>   if Top + Height > sBottom then
>
> shouldn't it be
>
>   if Top + Height + TitleBarHeight + MenuBarHeightIfWindows >  
> sBottom then
>
> 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.

Best,
- Joe

--
Joe Strout
Inspiring Applications, Inc.
http://www.InspiringApps.com



_______________________________________________
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>