]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/scroll/scroll.cpp
Fixed two missing parens
[wxWidgets.git] / samples / scroll / scroll.cpp
index 677baca7c1d1f627fac0d79c30b8e479358a6921..b7f00e71dc66b943efb3f95019934a0884ec6382 100644 (file)
@@ -79,11 +79,12 @@ MyCanvas::MyCanvas( wxWindow *parent, wxWindowID id,
                     const wxPoint &pos, const wxSize &size )
         : wxScrolledWindow( parent, id, pos, size, wxSUNKEN_BORDER )
 {
-  (void) new wxButton( this, -1, "wxButton", wxPoint(10,10) );
+
+//  (void) new wxButton( this, -1, "wxButton", wxPoint(10,10) );
   
-  (void) new wxTextCtrl( this, -1, "wxTextCtrl", wxPoint(10,50) );
+//  (void) new wxTextCtrl( this, -1, "wxTextCtrl", wxPoint(10,50) );
   
-  (void) new wxCheckBox( this, -1, "Disable", wxPoint(10,90) );
+  (void) new wxRadioButton( this, -1, "Disable", wxPoint(10,90) );
   
     wxString choices[] =
     {
@@ -94,9 +95,9 @@ MyCanvas::MyCanvas( wxWindow *parent, wxWindowID id,
         "examples."
     };
   
-  (void) new wxComboBox( this, -1, "This", wxPoint(10,130), wxDefaultSize, 5, choices );
+//  (void) new wxComboBox( this, -1, "This", wxPoint(10,130), wxDefaultSize, 5, choices );
   
-  (void) new wxRadioBox( this, -1, "This", wxPoint(10,200), wxDefaultSize, 5, choices );
+//  (void) new wxRadioBox( this, -1, "This", wxPoint(10,200), wxDefaultSize, 5, choices );
 }
 
 MyCanvas::~MyCanvas()
@@ -105,6 +106,8 @@ MyCanvas::~MyCanvas()
 
 void MyCanvas::OnPaint( wxPaintEvent &WXUNUSED(event) )
 {
+  return;
+
   wxPaintDC dc( this );
   PrepareDC( dc );