×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Sep 2008
    Location
    Vancouver, Canada
    Posts
    588

    how to give newline character in gc.DrawText??

    Hello,

    I have a large piece of text which i want to draw on the screen using gc.DrawText() method. I tried using "\n", "\r\n", "\u2029" but they don't work.

    Does anybody know how to draw text of screen with newline characters??

    Thanks

  2. #2
    Nokia Developer Champion
    Join Date
    Jun 2008
    Location
    Noida,India
    Posts
    3,957

    Re: how to give newline character in gc.DrawText??

    One easy way to draw large text on container is to utilize a label(CEikLabel) & make it multiline then.

    See how this works :

    http://www.developer.nokia.com/Commu..._use_CEikLabel

    Otherwise with DrawText(), i do not think it identifies \n character so the only way left is to give 'y' co-ordinate each time you write a new line.

  3. #3
    Registered User
    Join Date
    Sep 2008
    Location
    Vancouver, Canada
    Posts
    588

    Re: how to give newline character in gc.DrawText??

    Alright!

    Thanks Vineet.

Similar Threads

  1. How to Insert a newline character
    By dogbertrulez in forum Symbian
    Replies: 3
    Last Post: 2007-08-21, 02:56
  2. how to put a newline or a Enter character...
    By pvumesh in forum Symbian
    Replies: 7
    Last Post: 2007-04-13, 15:32
  3. (S60 ed. 3) drawString & newline character
    By tenren in forum Mobile Java General
    Replies: 3
    Last Post: 2006-07-19, 10:50
  4. newline character w/ series60
    By glschwar in forum Mobile Java General
    Replies: 2
    Last Post: 2003-11-16, 21:25

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •