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:
@@ -569,6 +569,8 @@ void StaticWidgetsPage::CreateStatic()
|
|||||||
staticBox->Connect(wxEVT_LEFT_UP,
|
staticBox->Connect(wxEVT_LEFT_UP,
|
||||||
wxMouseEventHandler(StaticWidgetsPage::OnMouseEvent),
|
wxMouseEventHandler(StaticWidgetsPage::OnMouseEvent),
|
||||||
NULL, this);
|
NULL, this);
|
||||||
|
|
||||||
|
SetUpWidget();
|
||||||
}
|
}
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
|
Reference in New Issue
Block a user