×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Regular Contributor
    Join Date
    Jun 2003
    Posts
    84

    Closing app from menu task + dialog

    Hi,

    When I run my app, if I press blue (menu) button, select the app then pres C (clear) the application gets exited if I confirm Yes.
    However if in my app I am showing a dialog then I try again to close the app from the task menu via menu/blue button as above the application doesnt get closed anymore.
    It seems the dialog denies this for some reasons. The dialog is based on CAknDialog and works well. Should I do anything special to solve this ? Can you help ?
    I currently need to be able the application to get exited when the dialog is shown and the user tries to exit the app from the menu task.

    Thanks
    tek

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

    Re: Closing app from menu task + dialog

    Have you tried over-loading ProcessCommandL() in your dialog and seeing if you get a command ID through when closing using this mechanism (EEikCmdExit or something similar)?
    Symsource Ltd.
    [url]www.symsource.com[/url]

  3. #3
    Regular Contributor
    Join Date
    Jun 2003
    Posts
    84

    Re: Closing app from menu task + dialog

    Hi,

    Yes, I have tried this. PrecessCommandL doesnt receive any command if I am doing this.
    I am a bit blocked on this since it must be a solution somehow.
    Thanks.

  4. #4
    Regular Contributor
    Join Date
    Mar 2003
    Posts
    179

    Re: Closing app from menu task + dialog

    Over-ride:
    TKeyResponse OfferKeyEventL(const TKeyEvent& aKeyEvent,TEventCode aType);

    You'll find this gets called with aKeyEvent.iCode==EKeyEscape and aType == EEventKey when the app is exited by the task list and the dialog is shown.
    Symsource Ltd.
    [url]www.symsource.com[/url]

  5. #5
    Regular Contributor
    Join Date
    Jun 2003
    Posts
    84

    Re: Closing app from menu task + dialog

    Hi Kevin,

    Yes, that was the solution.
    I had in OfferKeyEventL:
    {
    if(iListBox) return iListBox->OfferKeyEventL(..);
    return CAknDialog::OfferKeyEventL(..);
    }

    it seems my control iListBox were eating any key anyway, including the Escape key.
    This code was out of my suspections it could be the cause.

    Thank you very much for your help.

Similar Threads

  1. closing app thr' task list when CAknWaitDialog is running
    By yddusane in forum Symbian User Interface
    Replies: 2
    Last Post: 2007-05-07, 13:13
  2. Closing app from tasklist
    By ezhil01 in forum Symbian
    Replies: 1
    Last Post: 2006-11-08, 21:59
  3. Dialog from exe/ App from exe - Urgent
    By jay_sholey in forum Symbian
    Replies: 3
    Last Post: 2006-09-14, 09:55
  4. destroy dialog after choosing a menu option...
    By GeKI in forum Symbian User Interface
    Replies: 2
    Last Post: 2006-08-21, 13:56
  5. 7650 - go back, close my app not closing the container app
    By geran in forum Digital Rights Management & Content Downloading
    Replies: 1
    Last Post: 2002-12-05, 09:58

Posting Permissions

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