Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User tenren's Avatar
    Join Date
    Jul 2006
    Location
    Kuala Lumpur
    Posts
    17
    Hi,

    I am trying to write Strings to a CustomItem.
    From http://www.myjavaserver.com/~biorka/images/s60ed3_1.PNG
    you can see that I have tried to drawn the "\n" newline character
    and it appears as a small box. This was demonstrated in S60 edition 3 emulator. It poses no problems in an S40 ed 3 emulator. Why & how to remove the boxes ?

    Thanks all.

    Ten

  2. #2
    Regular Contributor electrique's Avatar
    Join Date
    Jun 2006
    Location
    Novosibirsk, Russia
    Posts
    63
    maybe your ide converting \n as to symbols: CR, LF
    and you are need only CR
    -electrique

  3. #3
    Super Contributor shmoove's Avatar
    Join Date
    Mar 2003
    Location
    Israel
    Posts
    2,280
    S60 phones (and others as well) draw "invisible" characters as squares when you pass strings that contain them. Same thing happens if you try to draw characters that are not supported (like foreign languages it doesn't have a font for). The solution: don't pass strings with "\n" to drawString() (drawString doesn't know how to handle multiline strings).

    shmoove

  4. #4
    Registered User tenren's Avatar
    Join Date
    Jul 2006
    Location
    Kuala Lumpur
    Posts
    17
    Thanks all.

Similar Threads

  1. What is going on with Vibration on S60?
    By amd_rikus in forum Mobile Java General
    Replies: 3
    Last Post: 2006-06-16, 00:29
  2. ERROR RCmake.exe AND rcomp.exe
    By jifik in forum Symbian Tools & SDKs
    Replies: 2
    Last Post: 2005-10-31, 12:24
  3. Replies: 3
    Last Post: 2005-09-13, 05:37
  4. Errors compilling and debugging Helloworld
    By doberlet in forum Symbian Tools & SDKs
    Replies: 2
    Last Post: 2004-03-04, 18:08
  5. Codewarrior import .mmp error
    By serenade in forum Symbian Tools & SDKs
    Replies: 1
    Last Post: 2004-02-21, 20:06

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