realbasic-betas.mbox
[Top] [All Lists]

StringWidth Wrap Incorrect CutOff

To: REALbasic Betas <realbasic-betas at lists dot realsoftware dot com>
Subject: StringWidth Wrap Incorrect CutOff
From: Josh Hague <jhague at koingosw dot com>
Date: Tue, 26 Nov 2002 19:22:01 -0800
Give it a try... I've reported it to RealSoftware. I didn't do anything wrong did I?:

  Dim p As PrinterSetup
  Dim g As Graphics
  Dim b As Boolean
  Dim WrapWidth As Integer
  Dim StringToDraw As String

  p = New PrinterSetup
  b = p.PageSetupDialog

  If b = True Then
    g = OpenPrinterDialog(p)
    If g <> Nil Then
      g.TextFont = "Monaco"
      g.TextSize = 11
StringToDraw = "welcome to the world of macintosh, isn't this great folks? Yes... yes it is... w00t.. yay and all that other fun stuff."
      WrapWidth = 300
g.DrawString StringToDraw, Abs(p.PageLeft), Abs(p.PageTop) + g.TextHeight, WrapWidth g.FillRect Abs(p.PageLeft),Abs(p.PageTop) + g.TextHeight, WrapWidth,10
    End If
  End If


-Josh Hague
jhague at koingosw dot com


---
A searchable archive of this list is available at:
<http://dbserver.realsoftware.com/KBDB/search.php>

Unsubscribe:
<mailto:realbasic-betas-off at lists dot realsoftware dot com>

Subscribe to the digest:
<mailto:realbasic-betas-digest at lists dot realsoftware dot com>
.


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