×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Regular Contributor
    Join Date
    Apr 2008
    Posts
    50

    OfferKeyEventL function not called in multiple views app

    Hello All

    I am having a problem in my multi-view application. There are two views in my application. First view contains a simple CEikLabel and the second contains a CAknSettingItemList. The switching between the 2 views is fine. When I switch to the second view (one with CAknSettingItemList) for the first time, I am able to select different items using up down keys, and that means the OfferKeyEventL function is being called. But, when I switch back to first view and again the second view, I cannot select any item in the list. It looks as if the OfferKeyEventL function isnt called at all. What could be the problem? Any ideass?

    Thanks,
    Sanjay Rajwani!

  2. #2
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,750

    Re: OfferKeyEventL function not called in multiple views app

    Make sure that you add/remove your Container to/from the Control Stack in DoActivateL/DoDeactivate.
    However I cannot really see how empty list and invocation/not invocation of OfferKeyEventL relate to each other. Is it some kind of a log? - make sure that you invoke HandleItemAdditionL and a DrawNow/Deferred then - though you have mentioned a settings list, which is normally not used this way (I am not sure if it has such method at all)

  3. #3
    Registered User
    Join Date
    Oct 2004
    Posts
    48

    Re: OfferKeyEventL function not called in multiple views app

    hello,
    have a look at the AddToStackL and RemoveFromStackL functions in your activate and deactivate routines.Also get connected proper your container class parent to the listbox observer

    best regards

  4. #4
    Regular Contributor
    Join Date
    Apr 2008
    Posts
    50

    Re: OfferKeyEventL function not called in multiple views app

    Hello.

    However I cannot really see how empty list and invocation/not invocation of OfferKeyEventL relate to each other.
    Actually, the settingslist is not empty. There are 2 items in it. In the OfferKeyEventL function of the container class (which contains this settingslist), i call the OfferKeyEventL function of the settinglist like this:

    iList->OfferKeyEventL(const TKeyEvent& aKeyEvent, TEventCode aType)

    So this is how they are related.

    I am not in office rite now, so will look at the code tomorrow morning and see if I have done proper push and pop of the container to the stack.

    Thanks for the replies.
    Sanjay Rajwani!!

  5. #5
    Regular Contributor
    Join Date
    Apr 2008
    Posts
    50

    Re: OfferKeyEventL function not called in multiple views app

    Great Stuff... The problem solved. I forgot to put it back to stack in the DoActivateL function.

    Thanks a ton
    Sanjay Rajwani

Similar Threads

  1. Error:When Exported function of dynamically loaded DLL is called
    By nokia_forum_chandru in forum Symbian Tools & SDKs
    Replies: 0
    Last Post: 2007-07-31, 12:51
  2. Replies: 1
    Last Post: 2004-03-01, 13:24
  3. Replies: 1
    Last Post: 2004-02-29, 14:50
  4. Replies: 0
    Last Post: 2004-02-26, 07:25
  5. Switching views on a Dialog-based Views App
    By net314 in forum Symbian User Interface
    Replies: 4
    Last Post: 2003-08-26, 21:05

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×