]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/html/widget/widget.cpp
redefined TRUE and FALSE to be of type bool
[wxWidgets.git] / samples / html / widget / widget.cpp
index 9c7bbed699ec48b241e2eae4ed576466b9b2573a..730f2886ddd41c747e9248e2ad872a07062af4a4 100644 (file)
@@ -49,13 +49,14 @@ TAG_HANDLER_BEGIN(MYBIND, "MYBIND")
 
         tag.ScanParam(wxT("X"), wxT("%i"), &ax);
         tag.ScanParam(wxT("Y"), wxT("%i"), &ay);
-        if (tag.HasParam("FLOAT")) fl = ax;
+        if (tag.HasParam(wxT("FLOAT")))
+            fl = ax;
 
-        wnd = new wxTextCtrl( m_WParser -> GetWindow(), -1, tag.GetParam("NAME"),
-                              wxPoint(0,0), wxSize(ax, ay), wxTE_MULTILINE );
-        wnd -> Show(TRUE);
+        wnd = new wxTextCtrl(m_WParser->GetWindow(), -1, tag.GetParam(wxT("NAME")),
+                             wxPoint(0,0), wxSize(ax, ay), wxTE_MULTILINE);
+        wnd->Show(TRUE);
 
-        m_WParser -> OpenContainer() -> InsertCell(new wxHtmlWidgetCell(wnd, fl));
+        m_WParser->GetContainer()->InsertCell(new wxHtmlWidgetCell(wnd, fl));
 
         return FALSE;
     }