event handling in Compund Controls
how do you get a compound control to capture and handle key events rather than the parent control. i added the 2 functions to the compound control
TKeyResponse OfferKeyEventL(const TKeyEvent& aKeyEvent,TEventCode aType);
void HandleControlEventL(CCoeControl* /*aControl*/, TCoeEvent /*aEventType*/);
but they are never called and instead similar functions of the parent control are called. why? how do i get the compound control to handle key events?
RE: event handling in Compund Controls
You have to call CCoeAppUi::AddToStackL() to get a control receive keyboard events. Check out the compound controls example application from the downloads page. It might be useful for you.
Marko / Forum Nokia