Fix setting categorized/alphabetic mode for inserted wxPropertyGridPage
State of the newly added wxPropertyGridPage should have the same categorized/alphabetic mode like associated wxPropertyGrid.
This commit is contained in:
@@ -995,6 +995,10 @@ wxPropertyGridPage* wxPropertyGridManager::InsertPage( int index,
|
|||||||
{
|
{
|
||||||
state->m_pPropGrid = m_pPropGrid;
|
state->m_pPropGrid = m_pPropGrid;
|
||||||
state->InitNonCatMode();
|
state->InitNonCatMode();
|
||||||
|
if ( !isPageInserted )
|
||||||
|
{
|
||||||
|
state->EnableCategories(m_pPropGrid->HasFlag(wxPG_HIDE_CATEGORIES) ? false : true);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( !label.empty() )
|
if ( !label.empty() )
|
||||||
|
Reference in New Issue
Block a user