×

Discussion Board

Results 1 to 6 of 6
  1. #1
    Registered User
    Join Date
    Nov 2009
    Posts
    5

    Post Container is not receiving events while Yes/No dialog is displayed

    Hello!

    Is there a guide/ example/ wiki_record regarding dialogs and continuity of the Symbian C++ (Carbide) program?

    My problem is that a Container is not receiving events while Yes/No dialog is displayed. Most probably, I am missing some fundamental principle/approach.

    Thanks in advance.

  2. #2
    Registered User
    Join Date
    Dec 2008
    Posts
    113

    Re: Container is not receiving events while Yes/No dialog is displayed

    These softkey event you will get in HandleCommandL function within the APPUI class or Viewclass....

    or

    if you are created

    - Display Dialog

    Query Dialog:
    CAknQueryDialog* removeQuery = CAknQueryDialog::NewL();
    if(removeQuery->ExecuteLD(R_SHOP_CONFIRMATION_QUERY)) {
    //....
    }

    Input dialog:
    TBuf<20> aString;
    CAknTextQueryDialog* addQuery = CAknTextQueryDialog::NewL(aString);
    CleanupStack::PushL(addQuery);
    HBufC* prompt;
    prompt = StringLoader::LoadLC(R_SHOP_DATA_QUERY_PROMPT);
    addQuery->SetPromptL(*prompt);
    CleanupStack::PopAndDestroy(prompt);
    CleanupStack::Pop(addQuery);
    if(addQuery->ExecuteLD(R_SHOP_DATA_QUERY)) {
    //...
    }


    It is return different-2 interger value after executing ExecuteLD function you press Yes or No

    key....
    Last edited by talk2mks; 2010-10-04 at 10:24.
    Regards
    MKS

  3. #3
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,167

    Re: Container is not receiving events while Yes/No dialog is displayed

    The dialog is propably modal, thus untill you dismiss it it is taking all events. Anyway, how should it work, and what kind of events you would need to get on the background there ?

  4. #4
    Registered User
    Join Date
    Nov 2009
    Posts
    5

    Re: Container is not receiving events while Yes/No dialog is displayed

    symbianyucca:

    I have callback functions (defined in ConstructL, outside the ContainerView class) in the application ContainerView module, which are executed without problems unless a modal dialog is executed. The dialog is a standard CAknQueryDialog, constructed by Carbide the default way (to be constructed from resource upon call):

    CAknQueryDialog* queryDialog = CAknQueryDialog::NewL();
    return queryDialog->ExecuteLD(R_TESTCONTAINER_CONF_QUERY);

    Thanks for the rapid response.

  5. #5
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,167

    Re: Container is not receiving events while Yes/No dialog is displayed

    the ExecuteLD is going to hang untill you dismiss the dialog, it is propably using ActiveScheduler::Start & Stop there, thus efectively disabling your threads main scheduler. So maybe you would want to either try making it non modal (I have not used non-modal dialogs for many years, thus not certain what problems you might encounter), or try finding alternative way on doing it.

  6. #6
    Registered User
    Join Date
    Nov 2009
    Posts
    5

    Re: Container is not receiving events while Yes/No dialog is displayed

    Thank you, that is a valuable addition. I have not drilled to the base of the dialogs behavior because I was afraid that I will miss some important point anyway.

    I will try to solve my problem by showing a brief kind of message and making something else visible on the screen to indicate the past event.

Similar Threads

  1. Changing views based on container events
    By deepchand86 in forum Symbian
    Replies: 2
    Last Post: 2008-11-10, 13:56
  2. Form not displayed when is created in Container ConstructL
    By redbart in forum Symbian User Interface
    Replies: 2
    Last Post: 2008-04-01, 10:30
  3. Modal Dialog key events causing dialog to exit
    By roland.berry in forum Symbian
    Replies: 0
    Last Post: 2007-07-19, 10:29
  4. Key events while a dialog is open
    By ShabbirPatel in forum Symbian User Interface
    Replies: 0
    Last Post: 2006-05-23, 16:35
  5. Key Events, Container/View AppUI
    By djazia in forum Symbian User Interface
    Replies: 0
    Last Post: 2002-12-18, 09:30

Posting Permissions

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