Refactor propgrid sample

Simplify implementation by creating panel and sizer holding wxPG instance
only once in FormMain ctor.
This commit is contained in:
Artur Wieczorek
2020-04-18 21:43:54 +02:00
parent 81f8e8d742
commit d9f8eec602
3 changed files with 74 additions and 103 deletions

View File

@@ -158,13 +158,12 @@ public:
void CreateGrid( int style, int extraStyle );
void ReplaceGrid(int style, int extraStyle);
void FinalizeFramePosition();
// These are used in CreateGrid(), and in tests to compose
// grids for testing purposes.
void InitPanel();
void PopulateGrid();
void FinalizePanel( bool wasCreated = true );
void PopulateWithStandardItems();
void PopulateWithExamples();