OfferKeyEvent doesn't work....Please Help
| Tue, 2008-08-05 08:18 | |
|
I m using Symbian 9.2 edition... My application is unable to offer key events.... The container and view files are as given below... ----------------------------------------------------------------------------------------------------------------------- /* void CLBiMainContainer::ViewDeactivated() informationNote = new ( ELeave ) CAknInformationNote; // Show the information Note with #ifndef LBIMAINCONTAINER_H_ // INCLUDES TKeyResponse OfferKeyEventL( const TKeyEvent& aKeyEvent,TEventCode aType ); void ViewDeactivated(); #endif /*LBIMAINCONTAINER_H_*/ // End of File // INCLUDE FILES #include // ========================= MEMBER FUNCTIONS ================================== // ----------------------------------------------------------------------------- // ----------------------------------------------------------------------------- // ----------------------------------------------------------------------------- // ----------------------------------------------------------------------------- // ----------------------------------------------------------------------------- // ----------------------------------------------------------------------------- // ----------------------------------------------------------------------------- Please can anyone tell what the problem actually is..... |
|






Forum posts: 52
Hi..
If overriding OfferKeyEventL(), the implementation must include a base call to CCoeControl's OfferKeyEventL().
Regards
Viajy
ready to face
Forum posts: 9
For me it seems you never add the container to the control stack which would explain why its OfferKeyEventL doesn't get called. You seem to remove it, though. Try and add call for AppUi()-> AddToViewStackL(*this, iMainContainer) to CLBiMainView::DoActivateL
Forum posts: 27
To get OfferKeyEventL work, you need to add your view to stack
AddToStackL(iAppView);
Regards,
Pankaj.
The best place to find the helping hand is at the end of your arm!!!
Forum posts: 2
is it necessary to have some controls in our application to use offerKeyEvent ??
Forum posts: 52
No its not required..
ready to face