]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/html/widget/widget.cpp
fixed bug with the caret positioning after SetValue() introduced by the last commit
[wxWidgets.git] / samples / html / widget / widget.cpp
index c0f8105a8c67b022edbd33937e2c25988da0b38a..7c48e1971a2a35e9b55718dd538594bf0fcb0c2b 100644 (file)
@@ -10,7 +10,7 @@
 #endif
 
 // For compilers that support precompilation, includes "wx/wx.h".
 #endif
 
 // For compilers that support precompilation, includes "wx/wx.h".
-#include <wx/wxprec.h>
+#include "wx/wxprec.h"
 
 #ifdef __BORLANDC__
     #pragma hdrstop
 
 #ifdef __BORLANDC__
     #pragma hdrstop
@@ -47,8 +47,8 @@ TAG_HANDLER_BEGIN(MYBIND, "MYBIND")
         int ax, ay;
         int fl = 0;
 
         int ax, ay;
         int fl = 0;
 
-        tag.ScanParam("X", "%i", &ax);
-        tag.ScanParam("Y", "%i", &ay);
+        tag.ScanParam(wxT("X"), wxT("%i"), &ax);
+        tag.ScanParam(wxT("Y"), wxT("%i"), &ay);
         if (tag.HasParam("FLOAT")) fl = ax;
 
         wnd = new wxTextCtrl( m_WParser -> GetWindow(), -1, tag.GetParam("NAME"),
         if (tag.HasParam("FLOAT")) fl = ax;
 
         wnd = new wxTextCtrl( m_WParser -> GetWindow(), -1, tag.GetParam("NAME"),