X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/be5a51fb592f3fa2ba38ac6cd1e488d6d806058c..dba0885d8c52d3a9a3e3f3887b525db57ba759f7:/samples/html/about/about.cpp diff --git a/samples/html/about/about.cpp b/samples/html/about/about.cpp index 9f93a98019..8f9203d43c 100644 --- a/samples/html/about/about.cpp +++ b/samples/html/about/about.cpp @@ -109,7 +109,7 @@ wxImage::AddHandler(new wxPNGHandler); // Create the main application window MyFrame *frame = new MyFrame(_("wxHtmlWindow testing application"), - wxPoint(50, 50), wxSize(150, 50)); + wxDefaultPosition, wxDefaultSize); // Show it and tell the application that it's our main window // @@@ what does it do exactly, in fact? is it necessary here? @@ -166,19 +166,20 @@ html = new wxHtmlWindow(&dlg, wxID_ANY, wxDefaultPosition, wxSize(380, 160), wxHW_SCROLLBAR_NEVER); html -> SetBorders(0); html -> LoadPage(wxT("data/about.htm")); - html -> SetSize(html -> GetInternalRepresentation() -> GetWidth(), + html -> SetSize(html -> GetInternalRepresentation() -> GetWidth(), html -> GetInternalRepresentation() -> GetHeight()); topsizer -> Add(html, 1, wxALL, 10); +#if wxUSE_STATLINE topsizer -> Add(new wxStaticLine(&dlg, wxID_ANY), 0, wxEXPAND | wxLEFT | wxRIGHT, 10); - +#endif // wxUSE_STATLINE + wxButton *bu1 = new wxButton(&dlg, wxID_OK, _("OK")); bu1 -> SetDefault(); topsizer -> Add(bu1, 0, wxALL | wxALIGN_RIGHT, 15); - dlg.SetAutoLayout(true); dlg.SetSizer(topsizer); topsizer -> Fit(&dlg);