]> git.saurik.com Git - wxWidgets.git/commitdiff
Updated the class name for wxWebKit to wxWebKitCtrl in sample.
authorKevin Ollivier <kevino@theolliviers.com>
Tue, 25 May 2004 04:34:53 +0000 (04:34 +0000)
committerKevin Ollivier <kevino@theolliviers.com>
Tue, 25 May 2004 04:34:53 +0000 (04:34 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27418 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

samples/html/htmlctrl/htmlctrl.cpp

index 1997e4346db8df50c04741cbff7cdb90d99ac6f6..d23f6bba80b2aa58863a109bdfe5ebb549f98a5a 100755 (executable)
@@ -86,7 +86,7 @@ public:
     void OnViewSource(wxCommandEvent& myEvent);
     void OnSetSource(wxCommandEvent& myEvent);
     void OnStateChanged(wxWebKitStateChangedEvent& myEvent);
-    wxWebKitControl* mySafari;
+    wxWebKitCtrl* mySafari;
     wxTextCtrl* urlText;
 private:
     // any class wishing to process wxWindows events must use this macro
@@ -186,7 +186,7 @@ MyFrame::MyFrame(const wxString& title)
     myToolbar->AddSeparator();
     myToolbar->Realize();
 
-    mySafari = new wxWebKitControl(this, ID_WEBKIT, _T("http://www.wxwidgets.org"), wxDefaultPosition, wxSize(200, 200));
+    mySafari = new wxWebKitCtrl(this, ID_WEBKIT, _T("http://www.wxwidgets.org"), wxDefaultPosition, wxSize(200, 200));
 
 #if wxUSE_STATUSBAR
     CreateStatusBar(2);
@@ -241,7 +241,7 @@ void MyFrame::OnViewSource(wxCommandEvent& myEvent){
 
 void MyFrame::OnSetSource(wxCommandEvent& myEvent){
     if (mySafari){
-        wxString myText = wxString("<HTML><HEAD></HEAD><BODY><P>Hello world!</P></BODY></HTML>");
+        wxString myText = wxT("<HTML><HEAD></HEAD><BODY><P>Hello world!</P></BODY></HTML>");
         mySafari->SetPageSource(myText);
     }
 }