Version: 2.9.4
Public Member Functions
wxMultiChoiceDialog Class Reference

#include </home/zeitlin/src/wx/github/interface/wx/choicdlg.h>

Inheritance diagram for wxMultiChoiceDialog:

Detailed Description

This class represents a dialog that shows a list of strings, and allows the user to select one or more.

Styles

This class supports the following styles:

Library:  wxBase
Category:  Common Dialogs
参照:
wxMultiChoiceDialog Overview, wxSingleChoiceDialog

Public Member Functions

wxArrayInt GetSelections () const
 Returns array with indexes of selected items.
void SetSelections (const wxArrayInt &selections)
 Sets selected items from the array of selected items' indexes.
int ShowModal ()
 Shows the dialog, returning either wxID_OK or wxID_CANCEL.
 wxMultiChoiceDialog (wxWindow *parent, const wxString &message, const wxString &caption, int n, const wxString *choices, long style=wxCHOICEDLG_STYLE, const wxPoint &pos=wxDefaultPosition)
 Constructor taking an array of wxString choices.
 wxMultiChoiceDialog (wxWindow *parent, const wxString &message, const wxString &caption, const wxArrayString &choices, long style=wxCHOICEDLG_STYLE, const wxPoint &pos=wxDefaultPosition)
 Constructor taking an array of wxString choices.

List of all members.


Constructor & Destructor Documentation

wxMultiChoiceDialog::wxMultiChoiceDialog ( wxWindow parent,
const wxString message,
const wxString caption,
int  n,
const wxString choices,
long  style = wxCHOICEDLG_STYLE,
const wxPoint pos = wxDefaultPosition 
)

Constructor taking an array of wxString choices.

Parameters:
parentParent window.
messageMessage to show on the dialog.
captionThe dialog caption.
nThe number of choices.
choicesAn array of strings, or a string list, containing the choices.
styleA dialog style (bitlist) containing flags chosen from standard dialog styles and the ones listed in the class documentation. The default value is equivalent to wxDEFAULT_DIALOG_STYLE | wxRESIZE_BORDER | wxOK | wxCANCEL | wxCENTRE.
posDialog position. Not Windows.
注意:
Use ShowModal() to show the dialog.

wxPerl Note: Not supported by wxPerl.

wxMultiChoiceDialog::wxMultiChoiceDialog ( wxWindow parent,
const wxString message,
const wxString caption,
const wxArrayString choices,
long  style = wxCHOICEDLG_STYLE,
const wxPoint pos = wxDefaultPosition 
)

Constructor taking an array of wxString choices.

Parameters:
parentParent window.
messageMessage to show on the dialog.
captionThe dialog caption.
choicesAn array of strings, or a string list, containing the choices.
styleA dialog style (bitlist) containing flags chosen from standard dialog styles and the ones listed in the class documentation. The default value is equivalent to wxDEFAULT_DIALOG_STYLE | wxRESIZE_BORDER | wxOK | wxCANCEL | wxCENTRE.
posDialog position. Not Windows.
注意:
Use ShowModal() to show the dialog.

wxPerl Note: Use an array reference for the choices parameter.


Member Function Documentation

wxArrayInt wxMultiChoiceDialog::GetSelections ( ) const

Returns array with indexes of selected items.

void wxMultiChoiceDialog::SetSelections ( const wxArrayInt selections)

Sets selected items from the array of selected items' indexes.

int wxMultiChoiceDialog::ShowModal ( ) [virtual]

Shows the dialog, returning either wxID_OK or wxID_CANCEL.

Reimplemented from wxDialog.

 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Defines