X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a8f4019041d7ad6c08c4961ff3cc745567c73c7e..1e4080f02e3b624be72914c9d25f4e12b163d2ac:/samples/propgrid/tests.cpp diff --git a/samples/propgrid/tests.cpp b/samples/propgrid/tests.cpp index eb22e52437..1c066ca0d9 100644 --- a/samples/propgrid/tests.cpp +++ b/samples/propgrid/tests.cpp @@ -918,6 +918,23 @@ bool FormMain::RunTests( bool fullTest, bool interactive ) pgman->EnsureVisible(wxT("Cell Colour")); } + { + RT_START_TEST(RemoveProperty) + + wxPGProperty* p; + + wxPGProperty* origParent = + pgman->GetProperty(wxT("Window Styles"))->GetParent(); + + p = pgman->RemoveProperty(wxT("Window Styles")); + pgman->Refresh(); + pgman->Update(); + + pgman->AppendIn(origParent, p); + pgman->Refresh(); + pgman->Update(); + } + { RT_START_TEST(SetPropertyBackgroundColour) wxCommandEvent evt;