×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Regular Contributor
    Join Date
    Oct 2009
    Posts
    314

    How to adjust a label according to the screen size

    Hi

    I have a bufer in which I have stored some data like

    Code:
    TBuf<201>buffer;
    buffer.Copy(_L("I am developing an application on S60 3rd edition. I have devices like N73,E61i etc...."));
    Now I am using a label

    Code:
     iLabel = new ( ELeave ) CEikLabel;
     iLabel->SetContainerWindowL( *this );
     iLabel->SetTextL(buffer);
     iLabel->ActivateL();
    Now when in the layout control when I want to enter this I need to adjust the text according to the screen size. Like

    Size().iwidth will give the width but how to adjust my label so that the text should appear fully and in the continous manner,like if it has to be in the next line it will be ...


    Thanks in advance!!!!!!!!!!!!!!!

  2. #2
    Nokia Developer Champion
    Join Date
    Jun 2008
    Location
    Noida,India
    Posts
    4,026

    Re: How to adjust a label according to the screen size

    Well that is generally a Multi line label, have a look at this link:

    http://wiki.forum.nokia.com/index.ph..._use_CEikLabel

  3. #3
    Regular Contributor
    Join Date
    Oct 2009
    Posts
    314

    Re: How to adjust a label according to the screen size

    Thnx again ..it solved my problem

Similar Threads

  1. -webkit-text-size-adjust ???
    By nickxl in forum Symbian
    Replies: 3
    Last Post: 2009-10-19, 15:51
  2. how to adjust font size ?
    By prashantghabak in forum Symbian
    Replies: 1
    Last Post: 2009-07-13, 15:18
  3. How to adjust UI according to screen size?
    By sweetsweet24 in forum Mobile Java General
    Replies: 1
    Last Post: 2008-12-09, 04:41
  4. How to adjust EDWIN size according to text length
    By whitewinds in forum Symbian User Interface
    Replies: 1
    Last Post: 2007-04-25, 02:21
  5. Can I adjust the size of image in my List?
    By baihaoping in forum Mobile Java General
    Replies: 1
    Last Post: 2006-04-15, 00:47

Posting Permissions

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