]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/checklst/checklst.cpp
Added rc and def files for new samples
[wxWidgets.git] / samples / checklst / checklst.cpp
index 74b5089c1c23bb07e97e187922dcaf3c98732ff4..48af69d3937f16c2bd4ddf4a665af0b5fa61f878 100644 (file)
@@ -147,7 +147,7 @@ CheckListBoxFrame::CheckListBoxFrame(wxFrame *frame,
          panel,                 // parent
          Control_Listbox,       // control id
          wxPoint(10, 10),       // listbox poistion
-         wxSize(400, 200),      // listbox size
+         wxSize(400, 100),      // listbox size
          WXSIZEOF(aszChoices),  // number of strings
          astrChoices            // array of strings
         );
@@ -156,8 +156,8 @@ CheckListBoxFrame::CheckListBoxFrame(wxFrame *frame,
 
     delete [] astrChoices;
 
-    // not implemented in wxGTK yet
-#ifndef __WXGTK__
+    // not implemented in other ports yet
+#ifdef __WXMSW__
     // set grey background for every second entry
     for ( ui = 0; ui < WXSIZEOF(aszChoices); ui += 2 ) {
         m_pListBox->GetItem(ui)->SetBackgroundColour(wxColor(200, 200, 200));