1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-19 17:11:12 +02:00

ShuttleGui::Style analogous to other functions

This commit is contained in:
Paul Licameli
2017-10-31 14:52:01 -04:00
parent 9eeef4713d
commit 1bfbfb9640
30 changed files with 153 additions and 136 deletions

View File

@@ -547,8 +547,8 @@ void VampEffect::PopulateOrExchange(ShuttleGui & S)
mChoices.reinit( count );
mValues.reinit( count );
S.SetStyle(wxVSCROLL | wxTAB_TRAVERSAL);
wxScrolledWindow *scroller = S.StartScroller(2);
wxScrolledWindow *scroller = S.Style(wxVSCROLL | wxTAB_TRAVERSAL)
.StartScroller(2);
{
S.StartStatic(_("Plugin Settings"));
{
@@ -671,10 +671,10 @@ void VampEffect::PopulateOrExchange(ShuttleGui & S)
wxString str = Internat::ToDisplayString(mParameters[p].minValue);
S.AddPrompt(str);
S.SetStyle(wxSL_HORIZONTAL);
S.Id(ID_Sliders + p);
mSliders[p] = S.ToolTip( TranslatableString{ tip } )
.Name( TranslatableString{ labelText } )
.Style(wxSL_HORIZONTAL)
.AddSlider( {}, 0, 1000, 0);
mSliders[p]->SetSizeHints(150, -1);