Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User tsippa's Avatar
    Join Date
    Oct 2006
    Posts
    37
    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 Expert symbianyucca's Avatar
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    28,712
    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 tsippa's Avatar
    Join Date
    Oct 2006
    Posts
    37
    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. Rich Text Editor and Dialog
    By sakhya in forum Symbian
    Replies: 0
    Last Post: 2005-04-28, 17:09
  2. Replies: 0
    Last Post: 2004-11-24, 18:49
  3. 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
  4. CRichText text problem
    By introuble in forum Symbian User Interface
    Replies: 2
    Last Post: 2003-09-30, 17:29
  5. How to draw a long text into multiline text??
    By titoliu in forum Symbian C++
    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
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved