Added some missing STL-like wxArray/wxArrayString constructors.
Added helper class wxCArrayString, better replacement for wxArrayString::GetStringArray. Added overloaded constructors and Create() methods taking a wxArrayString for wxCheckListBox, wxChoice, wxComboBox, wxListBox, wxRadioBox, wxSingleChoiceDialog, wxMultipleChoiceDialog. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25440 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -291,6 +291,31 @@ wxCheckListBox::wxCheckListBox (
|
||||
);
|
||||
} // end of wxCheckListBox::wxCheckListBox
|
||||
|
||||
wxCheckListBox::wxCheckListBox (
|
||||
wxWindow* pParent
|
||||
, wxWindowID vId
|
||||
, const wxPoint& rPos
|
||||
, const wxSize& rSize
|
||||
, const wxArrayString& asChoices
|
||||
, long lStyle
|
||||
, const wxValidator& rVal
|
||||
, const wxString& rsName
|
||||
)
|
||||
: wxListBox()
|
||||
{
|
||||
wxCArrayString chs(asChoices);
|
||||
Create( pParent
|
||||
,vId
|
||||
,rPos
|
||||
,rSize
|
||||
,chs.GetCount()
|
||||
,chs.GetStrings()
|
||||
,lStyle | wxLB_OWNERDRAW
|
||||
,rVal
|
||||
,rsName
|
||||
);
|
||||
} // end of wxCheckListBox::wxCheckListBox
|
||||
|
||||
void wxCheckListBox::Delete(
|
||||
int N
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user