]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/controls/controls.cpp
redirecting missing implementations to textctrl
[wxWidgets.git] / samples / controls / controls.cpp
index c0b9d7924e2c15ba4c5eedeb97c4948668321d79..a3ec62f705f0ccd9fa0a0e3710efd39fcc902d26 100644 (file)
@@ -939,7 +939,7 @@ MyPanel::MyPanel( wxFrame *frame, int x, int y, int w, int h )
 
 #if wxUSE_SPINCTRL
     m_spinctrl = new wxSpinCtrl( panel, ID_SPINCTRL, wxEmptyString, wxPoint(200, 160), wxSize(80, wxDefaultCoord) );
-    //m_spinctrl->SetRange(10,30);
+    m_spinctrl->SetRange(-10,30);
     m_spinctrl->SetValue(15);
 #endif // wxUSE_SPINCTRL
 
@@ -960,9 +960,9 @@ MyPanel::MyPanel( wxFrame *frame, int x, int y, int w, int h )
 
     wxBitmap bitmap( 100, 100 );
     wxMemoryDC dc;
-    dc.SetBackground(*wxGREEN);
     dc.SelectObject( bitmap );
-    dc.SetPen(*wxGREEN_PEN);
+    dc.SetBackground(*wxGREEN);
+    dc.SetPen(*wxRED_PEN);
     dc.Clear();
     dc.DrawEllipse(5, 5, 90, 90);
     dc.DrawText(_T("Bitmap"), 30, 40);