Discussion Board
controls in view
2002-06-17, 12:29
#1
Registered User
hi all,
How to create controls on the view which is derived from CCoeControl.
thanx,
ramana
RE: controls in view
2002-06-22, 11:11
#2
Registered User
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
Forum Rules