1 \section{\class{wxProgressDialog
}}\label{wxprogressdialog
}
3 This class represents a dialog that shows a short message and a
4 progress bar. Optionally, it can display an ABORT button.
6 \wxheading{Derived from
}
8 \helpref{wxFrame
}{wxframe
}\\
9 \helpref{wxWindow
}{wxwindow
}\\
10 \helpref{wxEvtHandler
}{wxevthandler
}\\
11 \helpref{wxObject
}{wxobject
}
13 \wxheading{Include files
}
17 \latexignore{\rtfignore{\wxheading{Members
}}}
19 \membersection{wxProgressDialog::wxProgressDialog
}\label{wxprogressdialogconstr
}
21 \func{}{wxProgressDialog
}
22 {\param{const wxString\&
}{title
},
23 \param{const wxString\&
}{message
},
\rtfsp
24 \param{int
}{maximum =
100},
25 \param{wxWindow *
}{parent = NULL
},
\rtfsp
26 \param{int
}{style = wxPD
\_AUTO\_HIDE | wxPD
\_APP\_MODAL}
29 Constructor. Creates the dialog, displays it and disables user input
30 for other windows, or, if wxPD
\_APP\_MODAL flag is not given, for its parent
33 \wxheading{Parameters
}
35 \docparam{title
}{Dialog title to show in titlebar.
}
37 \docparam{message
}{Message displayed above the progress bar.
}
39 \docparam{maximum
}{Maximum value for the progress bar.
}
41 \docparam{parent
}{Parent window.
}
43 \docparam{message
}{Message to show on the dialog.
}
45 \docparam{style
}{The dialog style. This is the combination of the following
46 bitmask constants defined in wx/defs.h:
49 \begin{twocollist
}\itemsep=
0pt
50 \twocolitem{wxPD
\_APP\_MODAL}{Make the progress dialog modal. If this flag is
51 not given, it is only "locally" modal - that is the input to the parent
52 window is disabled, but not to the other ones.
}
53 \twocolitem{wxPD
\_AUTO\_HIDE}{By default, the progress dialog will disappear
54 from screen as soon as the maximum value of the progress meter has been
55 reached. This flag prevents it from doing it - instead the dialog will wait
56 until the user closes it.
}
57 \twocolitem{wxPD
\_CAN\_ABORT}{This flag tells the dialog that it should have a
58 "Cancel" button which the user may press. If this happens, the next call to
59 \helpref{Update()
}{wxprogressdialogupdate
} will return FALSE.
}
63 \membersection{wxProgressDialog::
\destruct{wxProgressDialog
}}
65 \func{}{\destruct{wxMessageDialog
}}{\void}
67 Deletes the dialog and enables all top level windows.
69 \membersection{wxProgressDialog::Update
}\label{wxprogressdialogupdate
}
72 \param{int
}{value = -
1},
\rtfsp
73 \param{const char *
}{newmsg = NULL
},
}
75 Updates the dialog, setting the progress bar to the new value and, if
76 given changes the message above it. Returns TRUE if the ABORT button
77 has
\emph{not
} been pressed.
79 If FALSE is returned, the application can either immediately destroy the dialog
80 or ask the user for the confirmation and if the abort is not confirmed the
81 dialog may be resumed with
\helpref{Resume
}{wxprogressdialogresume
} function.
83 \docparam{value
}{The new value of the progress meter. It must be strictly less
84 than the maximum value given to the constructor (i.e., as usual in C, the
85 index runs from $
0$ to $maximum-
1$).
}
86 \docparam{newmsg
}{The new messages for the progress dialog text, if none is
87 given the message is not changed.
}
89 \membersection{wxProgressDialog::Resume
}\label{wxprogressdialogresume
}
91 \func{void
}{Resume
}{\void}
93 Can be used to continue with the dialog, after the user had chosen