×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    Oct 2004
    Location
    Hyderabad
    Posts
    38

    progress bar problem

    hi
    i want to display one progress bar and after the progress bar closes i want to change the view. plz let me know which function will call after the progress bar dialog dismissed. i have to impliment the functionality in that call back function. my code is like this. plz help me.

    // Resource dialog

    RESOURCE DIALOG rprogressdialog
    {
    flags = EAknProgressNoteFlags;
    buttons = R_AVKON_SOFTKEYS_CANCEL;
    items =
    {
    DLG_LINE
    {
    type = EAknCtNote;
    id = EProgressDlg;
    control = AVKON_NOTE
    {
    layout = EProgressLayout;
    singular_label = "Establishing Data Connection ...";
    imagefile = "z:\\system\\data\\avkon.mbm";
    imageid = EMbmAvkonQgn_note_copy;
    imagemask = EMbmAvkonQgn_note_copy_mask;
    };
    }
    };
    }

    // CPP file

    iDialog= new(ELeave)CAknProgressDialog(200,5,20,NULL);
    iDialog->ExecuteLD(RPROGRESSDIALOG);

    thanks in advance.

  2. #2
    Registered User
    Join Date
    Oct 2004
    Location
    Hyderabad
    Posts
    38

    Yucca can u give solution for my progress bar problem.

    hi yucca,
    i don't know what is the call back function for progress bar. can u tell me?

  3. #3
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,166
    check MProgressDialogCallback for the callback function.

    Anyway, you should tell the progress note in your code, when the process finishes. So you could propably do thye view change in there. (that palce would propably be, the RunL or some other function that is called when your connection is established)

    yucca

  4. #4
    Registered User
    Join Date
    Oct 2004
    Location
    Hyderabad
    Posts
    38

    hi yucca

    hi Yucca i wrote this code in my cpp file.

    iDialog= new(ELeave)CAknProgressDialog(200,5,20,NULL);
    iDialog->ExecuteLD(RPROGRESSDIALOG);

    after progress bar dismissed where the control will go? means which is the call back function in that class. after dismiss of that progress bar i have to display another view. where i have to call that view class constructor?
    thanks in advance.

  5. #5
    Super Contributor
    Join Date
    Apr 2003
    Location
    Czech Republic
    Posts
    915
    As Yucca said. You should inherit your class from MProgressDialogCallback and implement

    virtual void MProgressDialogCallback::DialogDismissedL ( TInt aButtonId ) [pure virtual]

    method.

Posting Permissions

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