×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Regular Contributor
    Join Date
    Mar 2003
    Posts
    108

    event handling in Compund Controls

    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

  2. #2
    Regular Contributor
    Join Date
    Mar 2003
    Posts
    371

    RE: event handling in Compund Controls

    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
  •  
×