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; }
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; }
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() }
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); }
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() }
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); } }
void MyFrame::OnTitleChange(wxWebEvent& evt) { SetTitle(evt.GetString()); }
void PreviewDlg::OnWebTitleChange(wxWebEvent& evt) { const wxString title = evt.GetString(); OnTitleChange(title); }
void wxWebPanelBase::OnTitleChange(wxWebEvent& evt) { if (SetTitleBarIsEnabled()) m_containing_frame -> SetTitle(evt.GetString()); }