updated samples/html/widget to avoid confusion

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14689 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Václav Slavík
2002-03-19 23:40:37 +00:00
parent 2aca4a9886
commit 5cb0e7ad18
2 changed files with 16 additions and 7 deletions

View 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;
}