Use wxBitmapBundle in html about sample

This commit is contained in:
Alexander Koshelev
2022-02-11 16:17:44 +03:00
parent 7a2a1e9074
commit bbcaa7b9e0
3 changed files with 32 additions and 2 deletions

View File

@@ -152,6 +152,7 @@ void MyFrame::OnAbout(wxCommandEvent& WXUNUSED(event))
html = new wxHtmlWindow(&dlg, wxID_ANY, wxDefaultPosition, wxSize(380, 160), wxHW_SCROLLBAR_NEVER);
html -> SetBorders(0);
html -> LoadPage("data/about.htm");
html -> SetHTMLBackgroundImage(wxBitmapBundle::FromSVGFile("data/bg.svg", wxSize(65, 45)));
html -> SetInitialSize(wxSize(html -> GetInternalRepresentation() -> GetWidth(),
html -> GetInternalRepresentation() -> GetHeight()));