From 5cb0e7ad183cc94a6076134d66fd85fabc375c02 Mon Sep 17 00:00:00 2001 From: =?utf8?q?V=C3=A1clav=20Slav=C3=ADk?= Date: Tue, 19 Mar 2002 23:40:37 +0000 Subject: [PATCH] updated samples/html/widget to avoid confusion git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14689 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- samples/html/widget/start.htm | 12 ++++++++++-- samples/html/widget/widget.cpp | 11 ++++++----- 2 files changed, 16 insertions(+), 7 deletions(-) diff --git a/samples/html/widget/start.htm b/samples/html/widget/start.htm index 2b969f425f..dfe45fe4eb 100644 --- a/samples/html/widget/start.htm +++ b/samples/html/widget/start.htm @@ -7,14 +7,22 @@ There is binded window somewhere around. Enjoy it.
- +


- + + +
+ +Here you can find multiple widgets at the same line:
+ here + +...and here: + 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; } -- 2.45.2