From 4a4d1643192d3d485ff073707ae941e4480132e3 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Wed, 20 Dec 2017 23:29:07 +0100 Subject: [PATCH] Keep attributes after recreating static controls in widgets sample Preserve the colours, font etc after recreating the widgets to facilitate testing. --- samples/widgets/static.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/samples/widgets/static.cpp b/samples/widgets/static.cpp index 8869bab39d..71b42b59b4 100644 --- a/samples/widgets/static.cpp +++ b/samples/widgets/static.cpp @@ -569,6 +569,8 @@ void StaticWidgetsPage::CreateStatic() staticBox->Connect(wxEVT_LEFT_UP, wxMouseEventHandler(StaticWidgetsPage::OnMouseEvent), NULL, this); + + SetUpWidget(); } // ----------------------------------------------------------------------------