Discussion Board

Results 1 to 4 of 4
  1. #1
    Regular Contributor curiouswalker's Avatar
    Join Date
    May 2008
    Posts
    73
    Hi,
    I am composing a compound control consisting of one label control and one listbox control, now I need to get width and height of the label control in order to place my listbox to correct place. Anybody tells me how to do this? Is there any existing api for this?

    Br,
    C.W.P

    P.S. The label(CEikLabel) is constructed from resource
    Last edited by curiouswalker; 2008-10-11 at 00:42.

  2. #2
    Registered User yogpan's Avatar
    Join Date
    Jun 2006
    Location
    India
    Posts
    1,043
    Hi,
    Check this documentation on CEikLabel
    http://www.symbian.com/Developer/tec...a%3aRect%28%29
    you can get the size as wwell as Rectangle dimensions of the control.
    Maximus
    S60 Developer
    Impossible is nothing

  3. #3
    Registered User sriky27's Avatar
    Join Date
    Dec 2005
    Posts
    1,236
    Hi,

    Correctly said ´by Yogpan CEikLabel is derived from CCoeControl and you could call Rect to get the rectangle. For your information the child controls in the compound control are always relative to the compound control.
    Regards,
    Sriky

  4. #4
    Regular Contributor curiouswalker's Avatar
    Join Date
    May 2008
    Posts
    73
    Thank Yogpan and Sriky!
    This thread could be closed now!

    Br,
    C.W.P

Similar Threads

  1. Problem in Increasing height of edwin control
    By praveenp in forum Symbian User Interface
    Replies: 1
    Last Post: 2008-05-12, 15:10
  2. the camera issue,why the width and height changed
    By dengjian82 in forum Symbian C++
    Replies: 2
    Last Post: 2007-11-16, 01:31
  3. MMS browser width and height ??
    By cumminsj in forum General Messaging
    Replies: 0
    Last Post: 2007-03-14, 08:11
  4. Text size: height e width
    By oper6600 in forum Python
    Replies: 3
    Last Post: 2007-01-29, 09:30
  5. JSR-226 Height and Width
    By ThatIsEnough in forum Mobile Java Media (Graphics & Sounds)
    Replies: 2
    Last Post: 2005-08-23, 12: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