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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user