From: Vadim Zeitlin Date: Thu, 17 Mar 2011 11:35:37 +0000 (+0000) Subject: Add a wxStaticText to the erase simple. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/6fec48b709255fe4197e425db9166b9ffca55233 Add a wxStaticText to the erase simple. This control explains better what is going on in the sample and also allows to test whether wxStaticText itself has properly transparent background (this is not currently the case under MSW). git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67224 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/samples/erase/erase.cpp b/samples/erase/erase.cpp index d603a93cef..99de17e1ba 100644 --- a/samples/erase/erase.cpp +++ b/samples/erase/erase.cpp @@ -257,8 +257,13 @@ MyCanvas::MyCanvas(wxFrame *parent) new wxStaticBitmap( this, wxID_ANY, m_bitmap, wxPoint(80,20) ); + new wxStaticText(this, wxID_ANY, + "Left bitmap is a wxStaticBitmap,\n" + "right one drawn directly", + wxPoint(150, 20)); + SetFocusIgnoringChildren(); - SetBackgroundColour(*wxBLUE); + SetBackgroundColour(*wxCYAN); } void MyCanvas::OnChar( wxKeyEvent &event )