×

Discussion Board

Results 1 to 8 of 8
  1. #1
    Regular Contributor
    Join Date
    Mar 2008
    Posts
    197

    There are how many chars of one line of the screen??

    Hi all,

    I need to figure out how many chars one line of screen can hold,
    but i do not konw how?

    Any guy met this before? Could give some help?

    thanks.

  2. #2
    Super Contributor
    Join Date
    Mar 2004
    Location
    Singapore
    Posts
    9,968

    Re: There are how many chars of one line of the screen??

    in past i have used AknTextUtils functions

  3. #3
    Regular Contributor
    Join Date
    Mar 2008
    Posts
    197

    Smile Re: There are how many chars of one line of the screen??

    Quote Originally Posted by skumar_rao View Post
    in past i have used AknTextUtils functions


    thank you.

    But i have checked this class,there is no related functions to achieve what i want,

    would you please share your critical part code or important ideas or something else that could help??

    thaks again.

  4. #4
    Super Contributor
    Join Date
    Mar 2004
    Location
    Singapore
    Posts
    9,968

    Re: There are how many chars of one line of the screen??

    have you tried AknTextUtils::WrapToArrayL

  5. #5
    Super Contributor
    Join Date
    Nov 2004
    Location
    Wiltshire, UK
    Posts
    3,644

    Re: There are how many chars of one line of the screen??

    This is a far from simple problem as it depends on the font, size, typeface, kern, weight, screen width, screen resolution.
    Measuring screen width by chars deserves to be left back in the 80's where it belongs!

    Look at the methods on the CFont object since this has methods to get the number of pixels a text string would consume for the font based on all the issues I mentioned above.
    Download Symbian OS now! [url]http://developer.symbian.org[/url]

  6. #6
    Regular Contributor
    Join Date
    Mar 2008
    Posts
    197

    Smile Re: There are how many chars of one line of the screen??

    Quote Originally Posted by skumar_rao View Post
    have you tried AknTextUtils::WrapToArrayL
    still not yet,

    but this function is complex for use,
    and according to its declaration, i doubt that how i could know how many letters one line of screen can hold via this function.

    thanks very much.

  7. #7
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,673

    Re: There are how many chars of one line of the screen??

    A short explanation:
    llll
    mmmm

    You can use CFont::MeasureText too.

  8. #8
    Regular Contributor
    Join Date
    Mar 2008
    Posts
    197

    Smile Re: There are how many chars of one line of the screen??

    Quote Originally Posted by Paul.Todd View Post
    This is a far from simple problem as it depends on the font, size, typeface, kern, weight, screen width, screen resolution.
    Measuring screen width by chars deserves to be left back in the 80's where it belongs!

    Look at the methods on the CFont object since this has methods to get the number of pixels a text string would consume for the font based on all the issues I mentioned above.

    thank you,

    your idea is really inspiring and amazing.

    However thank all who visited here and left someting helpful and inspiring.
    really thanks.

Similar Threads

  1. playing aduio file when call is rejected.
    By santosh_sangewar in forum Symbian
    Replies: 6
    Last Post: 2009-06-12, 11:35
  2. Help needed
    By kuhnikuehnast in forum Symbian Tools & SDKs
    Replies: 20
    Last Post: 2009-03-31, 22:55
  3. Splash Screen and line spacing
    By qwerty_wwd in forum Mobile Java Networking & Messaging & Security
    Replies: 1
    Last Post: 2006-03-02, 12:48
  4. Horizontal line on Nokia 6170 screen
    By elbel02 in forum General Development Questions
    Replies: 3
    Last Post: 2005-12-20, 11:33
  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
  •  
×