hi2 all
now that prblem is solved(i again went in recycle bin and restored the deleted .rsg file then it was builded successfully) but the new prblem is that ki when i am compiling my code and builded it my application first shows the blank screen for few seconds and then emulator automatically closec.
this is my container class modified code.
void CSMSExampleRTEContainer::ConstructL(const TRect& aRect)
{
CreateWindowL();
SetRect(aRect);
iRte = CRichTextEditorRTE::NewL();
TResourceReader reader;
iEikonEnv->CreateResourceReaderLC(reader,R_LIST_LISTBOX);
iListBox->ConstructFromResourceL(reader);
ActivateL();
CleanupStack::PopAndDestroy(); // reader
SizeChanged();
}
CSMSExampleRTEContainer::~CSMSExampleRTEContainer()
{
delete iRte;
iRte = 0;
}
void CSMSExampleRTEContainer::SizeChanged()
{
iListBox->SetExtent (TPoint(0,0), iListBox->MinimumSize());
}
TInt CSMSExampleRTEContainer::CountComponentControls() const
{
return 1; // return number of controls inside this container
}
CCoeControl* CSMSExampleRTEContainer::ComponentControl(TInt aIndex) const
{
switch ( aIndex )
{
case 0:
return iListBox;
default:
return NULL;
}
}
void CSMSExampleRTEContainer::Draw(const TRect& aRect) const
{
CWindowGc& gc = SystemGc();
gc.Clear(aRect);
}
void CSMSExampleRTEContainer::HandleControlEventL(
CCoeControl* /*aControl*/,TCoeEvent /*aEventType*/)
{
}
TKeyResponse CSMSExampleRTEContainer::OfferKeyEventL(const TKeyEvent& aKeyEvent,TEventCode aType)
{
if (iRte)
return iRte->OfferKeyEventL(aKeyEvent, aType);
else
return CCoeControl::OfferKeyEventL(aKeyEvent, aType);
}
void CSMSExampleRTEContainer::PlaySelectedGame(TInt /*aOpenedItem*/)
{
}
what should i do now?
awaiting your valuable reply......




