×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Mar 2003
    Posts
    12

    controls in view

    hi all,

    How to create controls on the view which is derived from CCoeControl.

    thanx,
    ramana

  2. #2
    Registered User
    Join Date
    Mar 2003
    Location
    Tampere, Finland
    Posts
    29

    RE: controls in view

    Declare controls that you would like to create as a member variables in the View class. Create these contols in, for example, View::ConstructL. Set container window and rectangle for each control and activate it.

    CMyView::ConstructL()
    {
    iMyLabel = new (ELeave) CEikLabel();
    iMyLabel->SetContainerWindowL(*this);
    iMyLabel->SetRect(Rect());
    iMyLabel->ActivateL();
    }

    Override virtual functions ComponentControl and CountComponentControls inherited from CCoeControl.

    You can find sample program in Nokia 9200 SDK \NokiaCPP\Epoc32Ex\System\Graphics.

Posting Permissions

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