CEikLabel* myLabel;

Login to reply to this topic.
Thu, 2007-11-29 16:12
Joined: 2007-11-09
Forum posts: 3

help Sad
i am trying to display this text and it doesnt work
i have no error in my application what could be wrong
i have also included the

#include <eiklabel.h>
void CXmasContainer2::ConstructL( const TRect& aRect )
    {
    CreateWindowL();
    SetRect( aRect );
   
    CEikLabel* myLabel;
    myLabel= new (ELeave) CEikLabel;
    myLabel->SetContainerWindowL( *this );
    myLabel->SetTextL( _L("NewLC rulez!") );
    myLabel->SetPosition(TPoint(100, 100));
   
    ActivateL();
   
    }
Evil


Fri, 2007-11-30 05:13
Joined: 2004-10-07
Forum posts: 47
Re: CEikLabel* myLabel;

Hi,
make your label variable as class member...
see any example of control... and use this function
CountComponentControls
ComponentControl


Thanks & Regards,
Symbi

  • Login to reply to this topic.