×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Regular Contributor
    Join Date
    May 2008
    Posts
    73

    Question how to get the width and height of a control

    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
    Join Date
    Jun 2006
    Location
    India
    Posts
    1,043

    Re: how to get the width and height of a control

    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
    Join Date
    Dec 2005
    Posts
    1,236

    Re: how to get the width and height of a control

    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
    Join Date
    May 2008
    Posts
    73

    Re: how to get the width and height of a control

    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
    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 Symbian
    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
  •  
×