wxprogressdialogthis class represents a dialog that shows a short message and a progress bar. optionally, it can display abort and skip buttons, the elapsed, remaining and estimated time for the end of the progress. derived from
wxdialog include files <wx/progdlg.h> window styles
wxprogressdialog::wxprogressdialog
wxprogressdialog::wxprogressdialogwxprogressdialog(const wxstring& title, const wxstring& message, int maximum = 100, wxwindow * parent = null, int style = wxpd_auto_hide | wxpd_app_modal) constructor. creates the dialog, displays it and disables user input for other windows, or, if wxpd_app_modal flag is not given, for its parent window only. parameters title
message
maximum
parent
style
wxprogressdialog::~wxprogressdialog~wxprogressdialog() destructor. deletes the dialog and enables all top level windows.
wxprogressdialog::resumevoid resume() can be used to continue with the dialog, after the user had chosen abort.
wxprogressdialog::updatevirtual bool update(int value, const wxstring& newmsg = "", bool *skip = null) updates the dialog, setting the progress bar to the new value and, if given changes the message above it. returns true unless the cancel button has been pressed. if false is returned, the application can either immediately destroy the dialog or ask the user for the confirmation and if the abort is not confirmed the dialog may be resumed with resume function. parameters value
wxprogressdialog::pulsevirtual bool pulse(const wxstring& newmsg = "", bool *skip = null) just like update but makes the gauge control run in indeterminate mode (see wxgauge documentation), sets the remaining and the estimated time labels (if present) to unknown and moves the progress bar a bit to indicate that some progress was done.
|