#include "wx/wx.h"
#endif
+#if !wxUSE_WEBVIEW_WEBKIT && !wxUSE_WEBVIEW_IE
+#error "A wxWebView backend is required by this sample"
+#endif
+
#include "wx/artprov.h"
#include "wx/notifmsg.h"
#include "wx/settings.h"
{
public:
WebFrame();
+ ~WebFrame();
void OnAnimationTimer(wxTimerEvent& evt);
void UpdateState();
wxCommandEventHandler(WebFrame::OnLoadScheme), NULL, this );
}
+WebFrame::~WebFrame()
+{
+ delete m_timer;
+ delete m_tools_menu;
+}
+
void WebFrame::OnAnimationTimer(wxTimerEvent& WXUNUSED(evt))
{
m_animation_angle += 15;
void WebFrame::OnTitleChanged(wxWebViewEvent& evt)
{
+ SetTitle(evt.GetString());
wxLogMessage("%s", "Title changed; title='" + evt.GetString() + "'");
- UpdateState();
}
/**