]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/propgrid/tests.cpp
Use explicit menu item background if it's given under MSW.
[wxWidgets.git] / samples / propgrid / tests.cpp
index 1b86cff7bca7261fd7f10deb6aca1686cd69bed4..5d62dbfe81b5e015915f7ecec3b1ee97efc3174e 100644 (file)
@@ -1030,13 +1030,17 @@ bool FormMain::RunTests( bool fullTest, bool interactive )
         wxPGProperty* p;
 
         wxPGProperty* origParent =
-            pgman->GetProperty(wxT("Window Styles"))->GetParent();
+            pgman->GetProperty("Window Styles")->GetParent();
 
-        p = pgman->RemoveProperty(wxT("Window Styles"));
+        // For testing purposes, let's set some custom cell colours
+        p = pgman->GetProperty("Window Styles");
+        p->SetCell(2, wxPGCell("style"));
+        p = pgman->RemoveProperty("Window Styles");
         pgman->Refresh();
         pgman->Update();
 
         pgman->AppendIn(origParent, p);
+        wxASSERT( p->GetCell(2).GetText() == "style");
         pgman->Refresh();
         pgman->Update();
     }