Discussion Board
event handling in Compund Controls
2002-06-17, 09:14
#1
Regular Contributor
hi,
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?
thanks,
ash
RE: event handling in Compund Controls
2002-06-18, 08:55
#2
Regular Contributor
Hi,
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.
Best Regards,
Marko / Forum Nokia
Posting Permissions
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
Forum Rules