/*bool wxToolBoxMinimalTestFrame::Create(wxWindow * parent, wxWindowID id, const wxString & title) { wxMessageBox(_("Attach to process")); bool res = wxFrame::Create(parent, id, title, wxDefaultPosition, wxSize(220, 500), wxDEFAULT_FRAME_STYLE | wxCAPTION); if(res) { //CreateToolBox(); long timer_id = wxNewId(); m_gaugetimer = new wxTimer(this, timer_id); Connect(timer_id, wxEVT_TIMER, wxObjectEventFunction(&wxToolBoxMinimalTestFrame::OnGaugeTimer)); } return res; } */ void wxToolBoxMinimalTestFrame::OnGaugeTimer(wxTimerEvent & event) { if(m_tab4gauge->GetValue() >= 100) { m_tab4gauge->SetValue(0); } else { m_tab4gauge->SetValue(m_tab4gauge->GetValue() + 10); } }
void UpdateDownload(ObserverDownloadInfo dl_info) { m_progres->SetRange(dl_info.size); m_progres->SetValue(dl_info.progress); m_info->SetLabel(wxString::Format(wxT("%i%%"), (int)((double)100.0 * dl_info.progress / (double)dl_info.size))); }
void showProgress(bool prog) { progress->Show(prog); }
void setProgress(int val) { progress->SetValue(val); }