Code:
TInt totalH=CEikonEnv::Static()->EikAppUi()->ApplicationRect().Height();
TInt totalW=CEikonEnv::Static()->EikAppUi()->ApplicationRect().Width();
TInt labelH=0.08*totalH;
TInt offSet=0.22*totalH;
TInt textBoxH=0.3*totalH;
iLabel1->SetExtent( TPoint( 7, totalH-textBoxH-labelH-textBoxH-labelH-offSet ), TSize( totalW-7, labelH ) );
iRichText1->SetExtent( TPoint( 7, totalH-textBoxH-labelH-textBoxH-offSet ), TSize( totalW-7, textBoxH ) );
iLabel2->SetExtent( TPoint( 7, totalH-textBoxH-labelH-offSet ), TSize( totalW-7, labelH ) );
iRichText2->SetExtent( TPoint( 7, totalH-textBoxH-offSet ), TSize( totalW-7, textBoxH ) );
iRichText1->SetFocus( EFalse );
this is how i implemented, i placed these codes in the "ConstructL" event in the control class.
i basically used ->SetExtent to determine the size.
i also replaced it in the LayoutControls() event which is supposingly the auto generated code form the .design in carbide