Use wxWS_EX_VALIDATE_RECURSIVELY in native Cocoa wxPreferencesEditor too.
Transfer data recursively for consistency with the generic implementation and because this generally just makes more sense. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_3_0_BRANCH@76327 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -62,6 +62,12 @@ public:
|
|||||||
m_toolbarRealized(false),
|
m_toolbarRealized(false),
|
||||||
m_visiblePage(NULL)
|
m_visiblePage(NULL)
|
||||||
{
|
{
|
||||||
|
// For consistency with the generic version, transfer data recursively:
|
||||||
|
// this ensures that all controls, even deep inside our pages, get
|
||||||
|
// correct values from their validators initially and transfer them
|
||||||
|
// back at the end.
|
||||||
|
SetExtraStyle(wxWS_EX_VALIDATE_RECURSIVELY);
|
||||||
|
|
||||||
m_toolbar = new wxToolBar(this, wxID_ANY, wxDefaultPosition, wxDefaultSize,
|
m_toolbar = new wxToolBar(this, wxID_ANY, wxDefaultPosition, wxDefaultSize,
|
||||||
wxTB_FLAT | wxTB_TEXT);
|
wxTB_FLAT | wxTB_TEXT);
|
||||||
m_toolbar->SetToolBitmapSize(wxSize(32,32));
|
m_toolbar->SetToolBitmapSize(wxSize(32,32));
|
||||||
|
Reference in New Issue
Block a user