}
{
- RT_START_TEST(ManagerClear)
+ RT_START_TEST(Clear)
+
+ // Manager clear
+ pgman->SelectProperty("Label");
pgman->Clear();
if ( pgman->GetPageCount() )
RT_FAILURE();
+ if ( pgman->GetGrid()->GetRoot()->GetChildCount() )
+ RT_FAILURE();
+
+ // Recreate the original grid
+ CreateGrid( -1, -1 );
+ pgman = m_pPropGridManager;
+
+ // Grid clear
+ pgman->SelectProperty("Label");
+ pgman->GetGrid()->Clear();
+
+ if ( pgman->GetGrid()->GetRoot()->GetChildCount() )
+ RT_FAILURE();
+
// Recreate the original grid
CreateGrid( -1, -1 );
pgman = m_pPropGridManager;
void wxPropertyGridPageState::DoClear()
{
+ if ( m_pPropGrid->GetState() == this )
+ {
+ m_pPropGrid->ClearSelection(false);
+ }
+ else
+ {
+ m_selected = NULL;
+ }
+
m_regularArray.Empty();
if ( m_abcArray )
m_abcArray->Empty();
m_virtualHeight = 0;
m_vhCalcPending = 0;
-
- m_selected = NULL;
}
// -----------------------------------------------------------------------