Example #1
0
/*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);
	}
}
Example #2
0
	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)));
	}
Example #3
0
	void showProgress(bool prog) { progress->Show(prog); }
Example #4
0
	void setProgress(int val) { progress->SetValue(val); }