Keep attributes after recreating static controls in widgets sample

Preserve the colours, font etc after recreating the widgets to
facilitate testing.
This commit is contained in:
Vadim Zeitlin 2017-12-20 23:29:07 +01:00
parent 900c6d5d75
commit 4a4d164319

View File

@ -569,6 +569,8 @@ void StaticWidgetsPage::CreateStatic()
staticBox->Connect(wxEVT_LEFT_UP,
wxMouseEventHandler(StaticWidgetsPage::OnMouseEvent),
NULL, this);
SetUpWidget();
}
// ----------------------------------------------------------------------------