X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2aca4a98866064d116c30a477b49a7a7c04cf58c..5cb0e7ad183cc94a6076134d66fd85fabc375c02:/samples/html/widget/widget.cpp?ds=sidebyside diff --git a/samples/html/widget/widget.cpp b/samples/html/widget/widget.cpp index 9c7bbed699..730f2886dd 100644 --- a/samples/html/widget/widget.cpp +++ b/samples/html/widget/widget.cpp @@ -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; }