Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Feb 2008

    Soft close dialog


    When my soft start, I display a dialogue with image, I want to close it after a few second, I don't can close it.
    I create the dialogue from resource with this code :
    CHelpfulForm* dlg = CHelpfulForm::NewL( R_FORM_MENUBAR );

    I have try function tryToExit, but compiler generate an error, and function :
    CAknForm::OkToExitL( EAknSoftkeyExit );
    dont close the dialogue.
    Have you an idea? Or exist a class for display an image a few time, like CAknGlobalConfirmationQuery for message text?


  2. #2
    Registered User
    Join Date
    Mar 2003

    Re: Soft close dialog

    Correct me if I'm wrong, but there is no simple way of closing Avkon dialog from the code, if the dialog expects some user input. You could try emulating softkey presses, but that would be a bit weird from the user point of view.

    One option would be to create an Avkon view with an image displayed, then activate timer, and then activate another view.

  3. #3
    Super Contributor
    Join Date
    Nov 2004
    Wiltshire, UK

    Re: Soft close dialog

    From WITHIN the dialog you need to call TryExitL(EAknSoftkeyCancel) which will close the dialog by simulating pressing the right soft key.

    You cannot do this from the main application as the dialog effectively makes a nested active scheduler to process the dialog.
    Download Symbian OS now! [url]http://developer.symbian.org[/url]

  4. #4
    Registered User
    Join Date
    Feb 2008

    Re: Soft close dialog

    your solution is ok paul.
    I have try before the tryExit but with a false argument.

Similar Threads

  1. Launching a dialog when the application starts
    By Uriah Eisenstein in forum Symbian User Interface
    Replies: 10
    Last Post: 2009-03-31, 09:06
  2. [announce] wait dialog wrapper 0.2
    By lfd in forum Symbian
    Replies: 10
    Last Post: 2008-03-21, 11:03
  3. close dialog problem..... weird problem
    By harish13_ks in forum Symbian User Interface
    Replies: 1
    Last Post: 2007-09-10, 16:14
  4. How to close pop up dialog programmatically
    By S.S.Sudhakar in forum Symbian
    Replies: 2
    Last Post: 2006-07-27, 03:38
  5. Force dialog to close
    By khanming in forum Symbian User Interface
    Replies: 0
    Last Post: 2002-10-24, 09:33

Posting Permissions

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