1
0
mirror of https://github.com/cookiengineer/audacity synced 2026-03-21 05:35:45 +01:00

Make windows inside wxStaticBox its children, not its siblings...

... as is recommended by wxWidgets documentation for version 2.9.1 and later:

http://docs.wxwidgets.org/3.0/classwx_static_box.html
This commit is contained in:
Paul Licameli
2017-10-20 12:43:20 -04:00
parent 40b4361732
commit 75e44df43d
3 changed files with 12 additions and 8 deletions

View File

@@ -787,6 +787,7 @@ wxStaticBox * ShuttleGuiBase::StartStatic(const wxString &Str, int iProp)
wxVERTICAL );
miSizerProp = iProp;
UpdateSizers();
mpParent = pBox;
return pBox;
}
@@ -795,6 +796,7 @@ void ShuttleGuiBase::EndStatic()
if( mShuttleMode != eIsCreating )
return;
PopSizer();
mpParent = mpParent->GetParent();
}
/// This allows subsequent controls and static boxes to be in