]> 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 74fa22ff81ffcfbd4ceb8bceb666a06961aee3f4..730f2886ddd41c747e9248e2ad872a07062af4a4 100644 (file)
@@ -10,7 +10,7 @@
 #endif
 
 // For compilers that support precompilation, includes "wx/wx.h".
-#include <wx/wxprec.h>
+#include "wx/wxprec.h"
 
 #ifdef __BORLANDC__
     #pragma hdrstop
 // for all others, include the necessary headers (this file is usually all you
 // need because it includes almost all "standard" wxWindows headers
 #ifndef WX_PRECOMP
-    #include <wx/wx.h>
+    #include "wx/wx.h"
 #endif
 
 
-#include <wx/html/htmlwin.h>
+#include "wx/html/htmlwin.h"
 
 
 
@@ -36,7 +36,7 @@ TAG HANDER FOR 'MYBIND' TAG
 
 */
 
-#include <wx/html/mod_templ.h>
+#include "wx/html/m_templ.h"
 
 
 TAG_HANDLER_BEGIN(MYBIND, "MYBIND")
@@ -47,15 +47,16 @@ TAG_HANDLER_BEGIN(MYBIND, "MYBIND")
         int ax, ay;
         int fl = 0;
 
-        tag.ScanParam("X", "%i", &ax);
-        tag.ScanParam("Y", "%i", &ay);
-        if (tag.HasParam("FLOAT")) fl = ax;
+        tag.ScanParam(wxT("X"), wxT("%i"), &ax);
+        tag.ScanParam(wxT("Y"), wxT("%i"), &ay);
+        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;
     }
@@ -203,7 +204,7 @@ wxHtmlWindow *html;
     // ... and attach this menu bar to the frame
       SetMenuBar(menuBar);
    
-      CreateStatusBar(1);
+      CreateStatusBar(2);
 
       html = new wxHtmlWindow(this);
       html -> SetRelatedFrame(this, "VFS Demo: '%s'");