Announcement

Collapse
No announcement yet.

Simple question

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Simple question

    I want to break a string over several lines in

    drawTextRelative(0, low()-2, "This goes on first line. This goes on second line.", Color.green, null, Text.ONBOTTOM | Text.LEFT | Text.BOLD, "Arial", 9, counter++)

    How to do?

    -------
    atlas

  • #2
    I would use two drawTextRelative()'s myself...but you could also try (this is untested by me) setting a variable = to the unicode for linefeed and seeing if using that will work:

    LineFeed = \u000A;

    drawTextRevlative("This is the first line" + LineFeed + "This is the second");



    Hope this helps/works for you.

    Garth
    Garth

    Comment


    • #3
      No go on the Unicode, but two drawText's works fine.

      atlas
      Last edited by atlas; 05-08-2004, 03:39 PM.

      Comment


      • #4
        try this: "first line\r\nsecond line"

        Comment


        • #5
          try this: "first line\r\nsecond line"
          Nope, also tried <br>

          Comment

          Working...
          X