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
This commit is contained in:
@@ -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 )
|
||||
|
Reference in New Issue
Block a user