Пример #1
0
void MyFrame::OnLocationChange(wxWebEvent& evt)
{
    // set the url bar
    SetUrlBarValue(evt.GetString());

    // set the DOM content loaded flag to false
    // until the DOM is safely loaded
    m_dom_contentloaded = false;
}
Пример #2
0
void wxWebPanelBase::OnLocationChange(wxWebEvent& evt)
{
    // set the url bar
#ifdef HAVE_URL_BAR
    SetUrlBarValue(evt.GetString());
#endif

    // set the DOM content loaded flag to false
    // until the DOM is safely loaded
    m_dom_contentloaded = false;
}
Пример #3
0
void MyFrame::OnStatusChange(wxWebEvent& evt)
{
    // wxEVT_WEB_STATUSCHANGE is received when the status text
    // changes when a web page is loading
    
    wxStatusBar* status_bar = GetStatusBar();
    status_bar->SetStatusText(evt.GetString());

    // note: the status bar text is reset when
    // all the content is finished loading, in
    // OnDOMContentLoaded()
}
Пример #4
0
void MyFrame::OnStatusText(wxWebEvent& evt)
{
    // wxEVT_WEB_STATUSTEXT is received when somebody hovers
    // the mouse over a link and the status text should
    // be updated
    
    wxString status_text = evt.GetString();
    if (status_text.Length() == 0)
        status_text = _("Ready");

    wxStatusBar* status_bar = GetStatusBar();
    status_bar->SetStatusText(status_text);
}
Пример #5
0
void wxWebPanelBase::OnStatusChange(wxWebEvent& evt)
{
    // wxEVT_WEB_STATUSCHANGE is received when the status text
    // changes when a web page is loading
    if (SetStatusBarIsEnabled())
	{
		wxStatusBar* status_bar = m_containing_frame -> GetStatusBar();
		if (NULL != status_bar)
			status_bar->SetStatusText(evt.GetString());
	}
    // note: the status bar text is reset when
    // all the content is finished loading, in
    // OnDOMContentLoaded()
}
Пример #6
0
void wxWebPanelBase::OnStatusText(wxWebEvent& evt)
{
    // wxEVT_WEB_STATUSTEXT is received when somebody hovers
    // the mouse over a link and the status text should
    // be updated
    if (SetStatusBarIsEnabled())
	{
		wxString status_text = evt.GetString();
		if (status_text.Length() == 0)
			status_text = _("Ready");

		wxStatusBar* status_bar = m_containing_frame -> GetStatusBar();
		if (NULL != status_bar)
			status_bar->SetStatusText(status_text);
	}
}
Пример #7
0
void MyFrame::OnTitleChange(wxWebEvent& evt)
{
    SetTitle(evt.GetString());
}
Пример #8
0
void PreviewDlg::OnWebTitleChange(wxWebEvent& evt) {
	const wxString title = evt.GetString();
	OnTitleChange(title);
}
Пример #9
0
void wxWebPanelBase::OnTitleChange(wxWebEvent& evt)
{
	if (SetTitleBarIsEnabled())
		m_containing_frame -> SetTitle(evt.GetString());
}