]> git.saurik.com Git - wxWidgets.git/commitdiff
don't use deprecated interface
authorVáclav Slavík <vslavik@fastmail.fm>
Fri, 14 Apr 2006 21:02:54 +0000 (21:02 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Fri, 14 Apr 2006 21:02:54 +0000 (21:02 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38727 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

samples/html/widget/widget.cpp

index e51fe68f1d7bf286c1bd199391a916e953907ced..7607fefdaff8b54f38860c45d01c15dbe29a31d3 100644 (file)
@@ -47,8 +47,15 @@ TAG_HANDLER_PROC(tag)
 
     if (tag.HasParam(wxT("FLOAT"))) fl = ax;
 
-    wnd = new wxTextCtrl(m_WParser->GetWindow(), wxID_ANY, tag.GetParam(wxT("NAME")),
-        wxPoint(0,0), wxSize(ax, ay), wxTE_MULTILINE);
+    wnd = new wxTextCtrl
+              (
+                m_WParser->GetWindowInterface()->GetHTMLWindow(),
+                wxID_ANY,
+                tag.GetParam(wxT("NAME")),
+                wxPoint(0,0),
+                wxSize(ax, ay),
+                wxTE_MULTILINE
+              );
 
     wnd->Show(true);