X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/be83461c7c67dc3518a536c7d8c24dff2eb61b15..840a5948c7023a650b3b8427991654e12c3427c1:/samples/text/text.cpp diff --git a/samples/text/text.cpp b/samples/text/text.cpp index f8ed400e59..48a1106ce0 100644 --- a/samples/text/text.cpp +++ b/samples/text/text.cpp @@ -45,6 +45,10 @@ #include "wx/numdlg.h" #include "wx/tokenzr.h" +#ifndef __WXMSW__ + #include "../sample.xpm" +#endif + //---------------------------------------------------------------------- // class definitions //---------------------------------------------------------------------- @@ -1088,7 +1092,7 @@ MyPanel::MyPanel( wxFrame *frame, int x, int y, int w, int h ) (*m_multitext) << _T(" Appended."); m_multitext->SetInsertionPoint(0); m_multitext->WriteText( _T("Prepended. ") ); - m_multitext->SetForegroundColour(*wxRED); + m_multitext->SetForegroundColour(*wxYELLOW); m_multitext->SetBackgroundColour(*wxLIGHT_GREY); #if wxUSE_TOOLTIPS @@ -1369,6 +1373,8 @@ END_EVENT_TABLE() MyFrame::MyFrame(wxFrame *frame, const wxChar *title, int x, int y, int w, int h) : wxFrame(frame, wxID_ANY, title, wxPoint(x, y), wxSize(w, h) ) { + SetIcon(wxICON(sample)); + #if wxUSE_STATUSBAR CreateStatusBar(2); #endif // wxUSE_STATUSBAR