]> git.saurik.com Git - wxWidgets.git/blobdiff - src/propgrid/manager.cpp
make sure theme font info is reset if anything is changed
[wxWidgets.git] / src / propgrid / manager.cpp
index f4052c044f1d7042253e3e174a507c3ad6e4d7b3..444902899c880c5c32ae1bfeb7e99e8c8bd07ecf 100644 (file)
@@ -528,6 +528,18 @@ void wxPropertyGridManager::SetWindowStyleFlag( long style )
 
 // -----------------------------------------------------------------------
 
+bool wxPropertyGridManager::Reparent( wxWindowBase *newParent )
+{
+    if ( m_pPropGrid )
+        m_pPropGrid->OnTLPChanging((wxWindow*)newParent);
+
+    bool res = wxPanel::Reparent(newParent);
+
+    return res;
+}
+
+// -----------------------------------------------------------------------
+
 // Actually shows given page.
 bool wxPropertyGridManager::DoSelectPage( int index )
 {
@@ -657,6 +669,8 @@ wxPropertyGridPageState* wxPropertyGridManager::GetPageState( int page ) const
 
 void wxPropertyGridManager::Clear()
 {
+    m_pPropGrid->ClearSelection(false);
+
     m_pPropGrid->Freeze();
 
     int i;