Discussion Board

Results 1 to 2 of 2
  1. #1
    Regular Contributor
    Join Date
    Mar 2003
    Posts
    53

    Confirmation Dialog and OK/Cancel dialog for 7650

    Dear all,

    For 7650, what class should I use to pop up
    1) a confirmation dialog with "OK" button to close it;
    2) a OK/Cancel dialog with a "OK"button and "Cancel" button.

    I guess there should be some classes are ready for these. Could anyone tell me?

    I have tried CAknConfirmationNote, but it closed itself without any button for user to confirm.

    I use it as the following way:
    CAknConfirmationNote* informationNote = new (ELeave) CAknConfirmationNote;
    informationNote->ExecuteLD(_L("test!");

    Best Regards,

    Edmund

  2. #2
    Registered User
    Join Date
    Mar 2003
    Posts
    3

    RE: Confirmation Dialog and OK/Cancel dialog for 7650

    This is from my code:

    CAknGlobalConfirmationQuery* confQuery = CAknGlobalConfirmationQuery::NewL();
    confQuery->ShowConfirmationQueryL(iConfirmationStat,
    iAlarmMessage,
    R_AVKON_SOFTKEYS_AGAIN_QUIT/*,
    // TODO: Add animatied icon
    R_QUERY_NOTE_ANIMATION*/);
    User::WaitForRequest(iConfirmationStat);

    TInt32 qResult = iConfirmationStat.Int();
    // Again - 3020
    // Quit - 3021

    confQuery->CancelConfirmationQuery();


    Hope it helps.
    Good luck,
    Roman.

Posting Permissions

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