Hi,
I am constructing application with many views, containers and forms. My plan is to display form in each of view, when the view is constructed, however I stuck in creating and displaying form in ConstructL of Container. The form is displayed when created in View object from the one option of the menu, but isnt when constructed in ConstructL of container of that view. Below is the code of container, anybody could help. I will be thankfull.
my ConstructL and Draw of container - I have tried before after, SetRect, ActivateL and there is no effect, decasing Draw give also no effect:
Code:void CS60_Container::ConstructL(const TRect& aRect) { CreateWindowL(); CS60_TestPersonalDataForm * form = CS60_TestPersonalDataForm::NewL(); form->ExecuteLD( R_S60_TESTPERSONALDATADIALOG ); SetRect(aRect); ActivateL(); } void CS60_Container::Draw(const TRect& aRect) const { CWindowGc& gc = SystemGc(); gc.SetPenStyle(CGraphicsContext::ENullPen); gc.SetBrushStyle(CGraphicsContext::ESolidBrush); gc.SetBrushColor(TRgb(255,255,255)); gc.DrawRect(aRect); }





