wxWizard does not show its content if the page added to GetPageAreaSizer is not the one initially shown
|Reported by:||aasselin||Owned by:|
the problem happens when GetPageAreaSizer()->Add(first_page) is used, and the page finally used to start is not that page.
the problem happens because the wxSizerItem::IsShown() function test each item _actually added_ to the sizer, thus if the first_page is not actually the one shown, all the items are hidden and the sizer item is considered hidden (and get size of 0,0)
I initially thought there was an easy solution implementing IsShown() on the sizer and returning always true, but unfortunately there is no such function on the sizer.
we could extract the small portion of code in wxSizerItem::IsShown() case Item_Sizer: into a virtual function IsShown() on the wxSizer class and override it in wxWizardSizer.