implemented wxGetSingleChoiceIndex version that takes wxArrayString
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10283 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -167,6 +167,23 @@ int wxGetSingleChoiceIndex( const wxString& message,
|
|||||||
return choice;
|
return choice;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int wxGetSingleChoiceIndex( const wxString& message,
|
||||||
|
const wxString& caption,
|
||||||
|
const wxArrayString& aChoices,
|
||||||
|
wxWindow *parent,
|
||||||
|
int x, int y,
|
||||||
|
bool centre,
|
||||||
|
int width, int height)
|
||||||
|
{
|
||||||
|
wxString *choices;
|
||||||
|
int n = ConvertWXArrayToC(aChoices, &choices);
|
||||||
|
int res = wxGetSingleChoiceIndex(message, caption, n, choices, parent,
|
||||||
|
x, y, centre, width, height);
|
||||||
|
delete [] choices;
|
||||||
|
|
||||||
|
return res;
|
||||||
|
}
|
||||||
|
|
||||||
#ifdef WXWIN_COMPATIBILITY_2
|
#ifdef WXWIN_COMPATIBILITY_2
|
||||||
// Overloaded for backward compatibility
|
// Overloaded for backward compatibility
|
||||||
int wxGetSingleChoiceIndex( const wxString& message,
|
int wxGetSingleChoiceIndex( const wxString& message,
|
||||||
|
Reference in New Issue
Block a user