×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    May 2010
    Posts
    4

    Talking Adding line feeds to ContentPanel entries

    This is really a simple question: how do I add linefeeds to ContentPanel entries???

    I have tried to do this

    Code:
    var myText = "Hello World\n\nHow are you?"
    entry = new ContentPanel(null,  "1", myText, true, false);
    mainView.addControl(entry);
    but the text is shown without any line feed. I have tried to use carriage return (\r) without success too.

    thanks for any help.

  2. #2
    Super Contributor
    Join Date
    May 2008
    Location
    Helsinki, Finland
    Posts
    1,100

    Re: Adding line feeds to ContentPanel entries

    Hi LunarMoon,

    You could try utilizing <br>, e.g:

    Code:
    
    content01 = new ContentPanel("", "Hello there<br/>"  ...etc

    Cheers,
    [FONT="Comic Sans MS"][COLOR="Blue"][/COLOR][I]Marko Lumivuori
    Technical Support
    +358 40 8019330
    [email]marko.lumivuori@nokia.com[/email][/I][/FONT]

  3. #3
    Registered User
    Join Date
    May 2010
    Posts
    4

    Re: Adding line feeds to ContentPanel entries

    Quote Originally Posted by Maveric View Post
    Hi LunarMoon,

    You could try utilizing <br>, e.g:

    Code:
    
    content01 = new ContentPanel("", "Hello there<br/>"  ...etc

    Cheers,


    oooopppsss... that's obvious! THANKS!!!!!!!!!

Similar Threads

  1. problemas con pjsip y vas
    By joselowolf in forum VoIP
    Replies: 2
    Last Post: 2010-12-14, 13:29
  2. Problem with pyobfuscate
    By JOM in forum Symbian
    Replies: 3
    Last Post: 2008-06-20, 22:47
  3. problem with Code Warrior 5.2
    By mayankkedia in forum Symbian
    Replies: 4
    Last Post: 2006-06-22, 08:26
  4. code warrior problems
    By mayankkedia in forum Carbide.c++ IDE and plug-ins (Closed)
    Replies: 2
    Last Post: 2004-10-25, 06:59
  5. problem with codewarrior 5.2
    By mayankkedia in forum Symbian Tools & SDKs
    Replies: 3
    Last Post: 2004-09-27, 16:08

Posting Permissions

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