From 6fec48b709255fe4197e425db9166b9ffca55233 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Thu, 17 Mar 2011 11:35:37 +0000 Subject: [PATCH] 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 --- samples/erase/erase.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 ) -- 2.45.2