Preserve header and label editing mode while recreating the grid

For some operations when grid needs to be recreated currently selected options to show the header and to enable label editing are being ignored and it can be seen a discrepancy between the options selected (and shown) in the menu and the mode of just created wxPropertyGrid. To avoid this inconsistency respective flags can be stored and used to enable/disable features in just created grid.
This commit is contained in:
Artur Wieczorek
2019-04-27 20:35:39 +02:00
parent 35ec8c519f
commit fa35fdc600
2 changed files with 18 additions and 4 deletions

View File

@@ -153,6 +153,8 @@ public:
wxVariant m_storedValues;
wxString m_savedState;
bool m_hasHeader;
bool m_labelEditingEnabled;
void CreateGrid( int style, int extraStyle );