Set wxWS_EX_VALIDATE_RECURSIVELY style for dialog
This is no longer required since wxWidgets 3.1.0 but is needed for prior versions.
This commit is contained in:
parent
f138b44a50
commit
02f516f646
|
@ -253,6 +253,11 @@ DisplayConfig::DisplayConfig(wxWindow* parent)
|
|||
std::bind(&DisplayConfig::OnInterframeChanged,
|
||||
this,
|
||||
std::placeholders::_1)) {
|
||||
#if !wxCHECK_VERSION(3, 1, 0)
|
||||
// This needs to be set before loading any element on the window. This also
|
||||
// has no effect since wx 3.1.0, where it became the default.
|
||||
this->SetExtraStyle(wxWS_EX_VALIDATE_RECURSIVELY);
|
||||
#endif
|
||||
wxXmlResource::Get()->LoadDialog(this, parent, "DisplayConfig");
|
||||
|
||||
// Speed
|
||||
|
|
Loading…
Reference in New Issue