Button and CheckBox are not visible

Login to reply to this topic.
Wed, 2005-11-23 14:11
Joined: 2005-11-18
Forum posts: 71
Hi EveryOne!
i am desigining a button and checkbox on 80's  SDk.
but the controls are not visible.
complete cpde executed correctly.
ths code is given below:

i am writing this in :CHelloWorldBasicAppView
                             -------------------------------------
    CreateWindowL();
    SetRect(aRect);
    SetBlank();

    CEikCheckBox * chkbox = new(ELeave)CEikCheckBox();
    chkbox->SetContainerWindowL(*this);
    chkbox->SetObserver((MCoeControlObserver*)this);
    chkbox->SetExtent(TPoint(100,100),chkbox->MinimumSize());
    chkbox->SetFocus(ETrue);
    chkbox->DrawNow();
       
    CEikCommandButton *BtnSave = new (ELeave)    CEikCommandButton();
    BtnSave->SetContainerWindowL(*this);
    BtnSave->SetTextL(_L(" Save "));
    BtnSave->SetObserver((MCoeControlObserver*)this);   
    BtnSave->SetExtent(TPoint(150,150),BtnSave->MinimumSize());
    BtnSave->DrawNow();
    SetBorder(TGulBorder::EFlatContainer);

    CknEnv::Skin().SetAppViewType(ESkinAppViewWithCbaNoToolband);

    ActivateL();



help me its urgent !!!!!!

Wed, 2006-05-17 15:38
Joined: 2006-05-17
Forum posts: 2
Re: Button and CheckBox are not visible
You should implement
TInt CountComponentControls() const
and
CCoeControl* ComponentControl(TInt aIndex)
functions in your parent window class (CHelloWorldBasicAppView in your case)
  • Login to reply to this topic.