32 m_progress =
new wxGauge(
this, -1, 100, wxDefaultPosition, wxDefaultSize, wxGA_HORIZONTAL);
47 if (GetFieldsCount() > 0)
50 GetFieldRect(GetFieldsCount() - 1, r);
definition of statusbar with progress indicator
void OnSize(wxSizeEvent &event)
size change handler, correctly position gauge when size has changed
~ProgressStatusBar()
destructor, clean up all stuff
int GetProgress()
return current progress value, should be in range 0 - 100, or -1 if the progress gauge is hidden ...
void SetProgress(int progress)
update progress bar
ProgressStatusBar(wxWindow *parent, wxWindowID id, long style=wxST_SIZEGRIP, const wxString &name=wxT("statusBar"))
constructor, create the gauge internal