×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Oct 2006
    Posts
    37

    Multiline text in .rls

    These do not seem to work:
    Code:
    #define qtn_text \ "lots of text here\n"\
                                       "more text here\n"\
                                       "still more text"
    Annoying. Line changes do not seem work, \n"+ "+ \n"\ "\ don't seem to do it. I don't want to type a helluva long string on one line. How to do this?

  2. #2
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,166

    Re: Multiline text in .rls

    at lest with dialogs I have user "this is first line\nand this is second"-types of strings succesfully. Anyway '\n' character seems not to work too well with editors, there you should search the input string yourself and add linebreaks when ever you find the line-end character.

    yucca

  3. #3
    Registered User
    Join Date
    Oct 2006
    Posts
    37

    Re: Multiline text in .rls

    Quote Originally Posted by symbianyucca
    at lest with dialogs I have user "this is first line\nand this is second"-types of strings succesfully. Anyway '\n' character seems not to work too well with editors, there you should search the input string yourself and add linebreaks when ever you find the line-end character.

    yucca
    Nods. I could probably get it to work easily with "first line\nsecond line"-type solution, but that would still require me to type a long string on a single line (I guess). It's just a matter of aesthetics, but the readability of .rls suffers, if I have to do this. I'm trying to separate this long string on multiple lines (of .rls), but standard C++-type line changing just doesn't seem to do it, or I am doing something wrong.

Similar Threads

  1. Replies: 0
    Last Post: 2004-11-24, 18:49
  2. How to show a multiline text on a Dialog?
    By hanwang in forum Symbian User Interface
    Replies: 0
    Last Post: 2003-11-15, 03:24
  3. CRichText text problem
    By introuble in forum Symbian User Interface
    Replies: 2
    Last Post: 2003-09-30, 17:29
  4. How to draw a long text into multiline text??
    By titoliu in forum Symbian
    Replies: 1
    Last Post: 2002-08-09, 11:15

Posting Permissions

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