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:
Fabrice de Gans 2022-10-30 12:29:10 -07:00 committed by Rafael Kitover
parent f138b44a50
commit 02f516f646
1 changed files with 5 additions and 0 deletions

View File

@ -253,6 +253,11 @@ DisplayConfig::DisplayConfig(wxWindow* parent)
std::bind(&DisplayConfig::OnInterframeChanged, std::bind(&DisplayConfig::OnInterframeChanged,
this, this,
std::placeholders::_1)) { 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"); wxXmlResource::Get()->LoadDialog(this, parent, "DisplayConfig");
// Speed // Speed