本文整理汇总了C++中wxWebEvent::GetString方法的典型用法代码示例。如果您正苦于以下问题:C++ wxWebEvent::GetString方法的具体用法?C++ wxWebEvent::GetString怎么用?C++ wxWebEvent::GetString使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类wxWebEvent
的用法示例。
在下文中一共展示了wxWebEvent::GetString方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: OnLocationChange
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: OnLocationChange
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: OnStatusChange
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: OnStatusText
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: OnStatusChange
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: OnStatusText
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: OnTitleChange
void MyFrame::OnTitleChange(wxWebEvent& evt)
{
SetTitle(evt.GetString());
}
示例8: OnWebTitleChange
void PreviewDlg::OnWebTitleChange(wxWebEvent& evt) {
const wxString title = evt.GetString();
OnTitleChange(title);
}
示例9: OnTitleChange
void wxWebPanelBase::OnTitleChange(wxWebEvent& evt)
{
if (SetTitleBarIsEnabled())
m_containing_frame -> SetTitle(evt.GetString());
}