mirror of
https://github.com/cookiengineer/audacity
synced 2026-03-05 06:01:04 +01:00
Don't directly create wxPanel in Equalization
This commit is contained in:
@@ -860,12 +860,13 @@ void EffectEqualization::PopulateOrExchange(ShuttleGui & S)
|
|||||||
szrG = S.GetSizer();
|
szrG = S.GetSizer();
|
||||||
|
|
||||||
// Panel used to host the sliders since they will be positioned manually.
|
// Panel used to host the sliders since they will be positioned manually.
|
||||||
//mGraphicPanel = safenew wxPanelWrapper(parent, wxID_ANY, wxDefaultPosition, wxSize(-1, 150));
|
//mGraphicPanel = S.Prop(1)
|
||||||
//S.Prop(1)
|
|
||||||
//.Position(wxEXPAND)
|
//.Position(wxEXPAND)
|
||||||
//.AddWindow(mGraphicPanel);
|
//.Size( { -1, 150 } )
|
||||||
|
//.StartPanel();
|
||||||
wxWindow *pParent = S.GetParent();
|
wxWindow *pParent = S.GetParent();
|
||||||
S.AddSpace(15,0);
|
S.AddSpace(15,0);
|
||||||
|
{
|
||||||
|
|
||||||
for (int i = 0; (i < NUMBER_OF_BANDS) && (kThirdOct[i] <= mHiFreq); ++i)
|
for (int i = 0; (i < NUMBER_OF_BANDS) && (kThirdOct[i] <= mHiFreq); ++i)
|
||||||
{
|
{
|
||||||
@@ -891,6 +892,8 @@ void EffectEqualization::PopulateOrExchange(ShuttleGui & S)
|
|||||||
.AddWindow( mSliders[i] );
|
.AddWindow( mSliders[i] );
|
||||||
}
|
}
|
||||||
S.AddSpace(15,0);
|
S.AddSpace(15,0);
|
||||||
|
|
||||||
|
} //S.EndPanel();
|
||||||
}
|
}
|
||||||
S.EndHorizontalLay();
|
S.EndHorizontalLay();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user