Read-only archive of the All About Symbian forum (2001–2013) · About this archive

NewBie`s TROUBLE

0 replies · 1,183 views · Started 22 March 2004

I just simply created a Dialog in container, why it can not run well.
(the dialog can not appear in the window),I don`t know if there is some
problems in the structure of program. who can tell me why ? thanks a lot.

the Code :void CMYFormContainer::ConstructL(const TRect& aRect)
{
//TBuf<32> Test("Test"😉;
CreateWindowL();

CMYFormDlg* formDialog = CMYFormDlg::NewL();
formDialog->PrepareLC(R_LISTBOX_FORM_DLG);
CEikEdwin* myEdwin = STATIC_CAST(CEikEdwin*, formDialog->ControlOrNull(EListBoxFormDlgCtrlID_Name));
//if (myEdwin)
{
// myEdwin->SetTextL(&Test);
}

formDialog->RunLD();//r_listbox_form_dlg

DrawNow();

SetRect(aRect);
ActivateL();
}

😞