×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Regular Contributor
    Join Date
    Jun 2003
    Posts
    318

    How can i get a form's back button event?

    Hi..

    Anyone know how can i get a form's back button event?

    i tried with the View's and AppUI's
    HandleCommandL()'s EAknSoftkeyBack..

    but i don't think it works. I don't they're the same as the form's back button.

    Is there some sort of a form observer thingy?, any other methods?

    - advo -
    Last edited by advocatee; 2003-07-26 at 14:22.

  2. #2
    Super Contributor
    Join Date
    Mar 2003
    Location
    Beijing
    Posts
    3,609
    Hi,

    Override the following function in your form class.

    TBool CDBMSexampleForm::OkToExitL( TInt aButtonId )
    {
    switch ( aButtonId )
    {
    case EAknSoftkeyCancel:
    break;

    case EAknSoftkeyBack:
    ....
    break;
    }

    }

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