An overload of AddChoice specifying selected as string value
This commit is contained in:
parent
089b46ab64
commit
17ee2478bc
|
@ -418,6 +418,12 @@ wxChoice * ShuttleGuiBase::AddChoice( const wxString &Prompt,
|
|||
return pChoice;
|
||||
}
|
||||
|
||||
wxChoice * ShuttleGuiBase::AddChoice( const wxString &Prompt,
|
||||
const wxArrayStringEx &choices, const wxString &Selected )
|
||||
{
|
||||
return AddChoice( Prompt, choices, choices.Index( Selected ) );
|
||||
}
|
||||
|
||||
void ShuttleGuiBase::AddFixedText(const wxString &Str, bool bCenter)
|
||||
{
|
||||
UseUpId();
|
||||
|
|
|
@ -169,7 +169,10 @@ public:
|
|||
wxCheckBox * AddCheckBox( const wxString &Prompt, bool Selected);
|
||||
wxCheckBox * AddCheckBoxOnRight( const wxString &Prompt, bool Selected);
|
||||
wxComboBox * AddCombo( const wxString &Prompt, const wxString &Selected,const wxArrayStringEx & choices, long style = 0 );
|
||||
wxChoice * AddChoice( const wxString &Prompt, const wxArrayStringEx &choices, int Selected = -1 );
|
||||
wxChoice * AddChoice( const wxString &Prompt,
|
||||
const wxArrayStringEx &choices, int Selected = -1 );
|
||||
wxChoice * AddChoice( const wxString &Prompt,
|
||||
const wxArrayStringEx &choices, const wxString &selected );
|
||||
wxMenuBar * AddMenuBar( );
|
||||
wxMenu * AddMenu( const wxString & Title );
|
||||
void AddIcon( wxBitmap * pBmp);
|
||||
|
|
|
@ -572,7 +572,7 @@ void VampEffect::PopulateOrExchange(ShuttleGui & S)
|
|||
mProgram = S.AddChoice(
|
||||
{},
|
||||
choices,
|
||||
choices.Index( currentProgram )
|
||||
currentProgram
|
||||
);
|
||||
mProgram->SetName(_("Program"));
|
||||
mProgram->SetSizeHints(-1, -1);
|
||||
|
|
Loading…
Reference in New Issue