realbasic-nug
[Top] [All Lists]

Re: Keeping Windows on Screen Class

To: realbasic-nug at lists dot realsoftware dot com
Subject: Re: Keeping Windows on Screen Class
From: Stephen Dodd <stephen at transcena dot com>
Date: Fri, 29 Feb 2008 15:56:28 -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>
Thanks Joe (and Terry).

I should be able to adapt Joe's code.  Funny this isn't a common 
class somewhere.

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