Exemple #1
0
void MyFrame::OnStateChange(wxWebEvent& evt)
{
    // clear the status bar hear since OnStatusChange() doesn't 
    // contain an empty string and we don't want "stuck" text in 
    // the statusbar
    int state = evt.GetState();    
    wxString status_text = _("Ready");
    wxStatusBar* status_bar = GetStatusBar();

    if ((state & wxWEB_STATE_STOP) && (state & wxWEB_STATE_IS_REQUEST))
        status_bar->SetStatusText(status_text);

    if ((state & wxWEB_STATE_STOP) && (state & wxWEB_STATE_IS_REQUEST))
        status_bar->SetStatusText(status_text);
}
Exemple #2
0
void wxWebPanelBase::OnStateChange(wxWebEvent& evt)
{
    // clear the status bar hear since OnStatusChange() doesn't 
    // contain an empty string and we don't want "stuck" text in 
    // the statusbar
    int state = evt.GetState();  
	if (SetStatusBarIsEnabled())
	{
		wxStatusBar* status_bar = m_containing_frame -> GetStatusBar();
		if (NULL != status_bar)
		{
			wxString status_text = _("Ready");
   

			if ((state & wxWEB_STATE_STOP) && (state & wxWEB_STATE_IS_REQUEST))
				status_bar->SetStatusText(status_text);

			if ((state & wxWEB_STATE_STOP) && (state & wxWEB_STATE_IS_REQUEST))
				status_bar->SetStatusText(status_text);
		}
	}
}