Improve widgets sample UI consistency.

Ensure that the various attributes (colours, font, border, ...) are preserved
when a widget is recreated or the current page is changed. This is more
convenient and also avoids discrepancies between the state of the menu items
and the actual state of the widget.

Closes #16576.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@78332 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2015-01-02 14:26:53 +00:00
parent 55da8a0f86
commit 5662e86b61
17 changed files with 141 additions and 107 deletions

View File

@@ -631,7 +631,7 @@ void TextWidgetsPage::Reset()
void TextWidgetsPage::CreateText()
{
int flags = ms_defaultFlags;
int flags = GetAttrs().m_defaultFlags;
switch ( m_radioTextLines->GetSelection() )
{
default: