patch initializing the multi choice dialog with the selections array values
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9508 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -259,6 +259,10 @@ size_t wxGetMultipleChoices(wxArrayInt& selections,
|
|||||||
int WXUNUSED(width), int WXUNUSED(height))
|
int WXUNUSED(width), int WXUNUSED(height))
|
||||||
{
|
{
|
||||||
wxMultiChoiceDialog dialog(parent, message, caption, n, choices);
|
wxMultiChoiceDialog dialog(parent, message, caption, n, choices);
|
||||||
|
|
||||||
|
if ( !selections.IsEmpty() )
|
||||||
|
dialog.SetSelections(selections);
|
||||||
|
|
||||||
if ( dialog.ShowModal() == wxID_OK )
|
if ( dialog.ShowModal() == wxID_OK )
|
||||||
selections = dialog.GetSelections();
|
selections = dialog.GetSelections();
|
||||||
else
|
else
|
||||||
|
Reference in New Issue
Block a user