realbasic-nug
[Top] [All Lists]

RE: RB2007 and TextSize

To: REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
Subject: RE: RB2007 and TextSize
From: "Steve Garman" <realbasic at garman dot demon dot co dot uk>
Date: Sat, 31 Mar 2007 21:42:22 +0100
Delivered-to: listarchive at realsoftware dot com
Delivered-to: realbasic-nug at lists dot realsoftware dot com
>   If sh < shSav Then
>     do
>       g.TextSize = g.TextSize + 1
>       sh = g.StringHeight( "Why", 32000 )
>     loop until sh >= shSav
>   elseif sh > shSav Then
>     do
>       g.TextSize = g.TextSize - 1
>       sh = g.StringHeight( "Why", 32000 )
>     loop until sh >= shSav or g.TextSize = 0
>   end if

Sorry, that should have been:

  If sh < shSav Then
    do
      g.TextSize = g.TextSize + 1
      sh = g.StringHeight( "Why", 32000 )
    loop until sh >= shSav
  elseif sh > shSav Then
    do
      g.TextSize = g.TextSize - 1
      sh = g.StringHeight( "Why", 32000 )
    loop until sh <= shSav or g.TextSize = 0  //Corrected line
  end if
  





-- 
Steve Garman
Using REALbasic Professional on Windows XP Pro


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