×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Regular Contributor
    Join Date
    Apr 2006
    Posts
    105

    How to get PopUp Selected Event

    Hi all,
    I am using CAknForm, in side that Popup fieds its working fine also,but now i need to implement some more GUI.
    When ever Select Popup field of the item i need to dispaly one more dialog,
    is it possible ?
    For Ex:..
    My PopUp Field.
    Select Number:
    1.One
    2.Two
    3.Three
    when i select One i need to dispaly one more dailog for displaying dialog i need to get the event of popup field selection, how should i get event please help me,urgent

  2. #2
    Regular Contributor
    Join Date
    Apr 2006
    Location
    India
    Posts
    383

    Re: How to get PopUp Selected Event

    Hi!

    Implement OfferKeyEventL(const TKeyEvent& aKeyEvent,TEventCode aType) for your form.
    The usual way.. u can catch the events.

    Well, to display one more dialog.. u need to check it out..

    U wil select the item from popup using OK which is left soft key that time.

    so aKeyEvent iScanCode wil be 164 (EStdKeyDevice0)

    Hope this help u.
    Regards,
    Shilpa Kulkarni

  3. #3
    Regular Contributor
    Join Date
    Apr 2006
    Posts
    105

    Re: How to get PopUp Selected Event

    Hi Silpa,
    Thanks for reply,
    i implemented offerkeyeventkeyL(), its giving some issues,actually my settings are derived CAKnForm .
    Problem has i am not able move the one form another form.

  4. #4
    Regular Contributor
    Join Date
    Apr 2006
    Posts
    105

    Re: How to get PopUp Selected Event

    HI Shilpa13,
    I am implemented OfferKeyEventL(), but i want to handling the specific keys only,other all keys i want to pass Form its self, for this i written like this but its not working,please let me where i am wrong
    TKeyResponse CSettingsDialog::OfferKeyEventL (const TKeyEvent &aKeyEvent, TEventCode aType)
    {
    TInt lResult = KErrUnknown;

    TKeyResponse lKeyResponse = EKeyWasNotConsumed;

    if (EEventKey == aType) // Is not key event?
    {
    TInt lCommand = aKeyEvent.iCode;

    if(lCommand == EKeyDevice0)
    {

    CAknConfirmationNote* lConfirmationNotePtr = new (ELeave) CAknConfirmationNote();
    lConfirmationNotePtr->SetTone(CAknNoteDialog::EConfirmationTone);
    lConfirmationNotePtr->ExecuteLD(_L("Got it"));
    //lKeyResponse = KeyWasConsumed
    }
    else
    {

    }

    }
    else if(EEventKeyUp == aType ||
    EEventKeyDown == aType)
    {
    //lKeyResponse = CAknForm::OfferKeyEventL(aKeyEvent,aType);
    //lKeyResponse = CAknDialog::OfferKeyEventL(aKeyEvent,aType);
    lKeyResponse = CEikDialog::OfferKeyEventL(aKeyEvent,aType); its not going
    }
    return lKeyResponse;
    }

Similar Threads

  1. CLogEvent problem
    By silviuccia in forum Symbian
    Replies: 2
    Last Post: 2006-12-22, 15:28
  2. Replies: 3
    Last Post: 2006-11-30, 14:30
  3. reponse to cancel event in a popup menu
    By whitewinds in forum Symbian
    Replies: 3
    Last Post: 2006-09-18, 14:47
  4. Replies: 0
    Last Post: 2006-04-27, 15:21
  5. Dynamic popup CurrentIndexValue returns 0
    By kerfunkledbongle in forum Symbian User Interface
    Replies: 0
    Last Post: 2006-04-18, 01:29

Posting Permissions

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