Want to return event to OS ! Please help me !

Login to reply to this topic.
Wed, 2006-06-07 09:41
Joined: 2005-06-21
Forum posts: 107
Hi all !
Please help me to correct my code . I want to return event to OS in device ! thanks

void CGamesAppUi::HandleWsEventL(
      const TWsEvent& aEvent, CCoeControl* aDestination )
{
      TKeyEvent* k = aEvent.Key();
      TInt buff = k->iScanCode;
      if( buff != 164 ){
          _LIT(message,"Hello!");
         CAknInformationNote* informationNote = new (ELeave) CAknInformationNote;
         informationNote->ExecuteLD(message);
    }
    else{
          //== I want to return event for OS
    }
}
//============== doctinh 113114 ==============

Wed, 2006-06-07 10:17
Joined: 2005-11-20
Forum posts: 1242
Re: Want to return event to OS ! Please help me !
Maybe just call the overridden method, e.g. CAknAppUi::HandleWsEventL, so that the default handler can do its work?

And btw, really no need to say "Please help me!" in the title of a posting...

René Brunner

Wed, 2006-06-07 10:32
Joined: 2005-06-21
Forum posts: 107
Re: Want to return event to OS ! Please help me !
Hi all!
Thanks ! I do it but I don't work ! Please help me again!
Wed, 2006-06-07 10:59
Joined: 2005-06-21
Forum posts: 107
Re: Want to return event to OS ! Please help me !
Hi all
I can do that . This my code :

void CHelloWorldAppUi::HandleWsEventL(const TWsEvent& aEvent, CCoeControl* aDestination)
{
    TKeyEvent* k = aEvent.Key();
    TInt buff = k->iScanCode;
    TBuf<25> buf;
    if( buff != 164 ){
        _LIT(message,"Hello!");
        CAknInformationNote* informationNote = new (ELeave) CAknInformationNote;
        informationNote->ExecuteLD(message);
    }
    else{
        //===== Return event for OS
        CEikAppUi::HandleWsEventL(aEvent,aDestination);
    }
}
Wed, 2006-06-07 11:05
Joined: 2005-11-20
Forum posts: 1242
Re: Want to return event to OS ! Please help me !
Uh... what does not work? What do you expect and then does not happen?

René Brunner

Wed, 2006-06-07 11:11
Joined: 2005-06-21
Forum posts: 107
Re: Want to return event to OS ! Please help me !
Thanks !
It worked !
  • Login to reply to this topic.