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:
@@ -47,6 +47,31 @@ public:
|
||||
);
|
||||
}
|
||||
|
||||
inline wxRadioBox( wxWindow* pParent
|
||||
,wxWindowID vId
|
||||
,const wxString& rsTitle
|
||||
,const wxPoint& rPos
|
||||
,const wxSize& rSize
|
||||
,const wxArrayString& asChoices
|
||||
,int nMajorDim = 0
|
||||
,long lStyle = wxRA_HORIZONTAL
|
||||
,const wxValidator& rVal = wxDefaultValidator
|
||||
,const wxString& rsName = wxRadioBoxNameStr
|
||||
)
|
||||
{
|
||||
Create( pParent
|
||||
,vId
|
||||
,rsTitle
|
||||
,rPos
|
||||
,rSize
|
||||
,asChoices
|
||||
,nMajorDim
|
||||
,lStyle
|
||||
,rVal
|
||||
,rsName
|
||||
);
|
||||
}
|
||||
|
||||
~wxRadioBox();
|
||||
|
||||
bool Create( wxWindow* pParent
|
||||
@@ -62,6 +87,18 @@ public:
|
||||
,const wxString& rsName = wxRadioBoxNameStr
|
||||
);
|
||||
|
||||
bool Create( wxWindow* pParent
|
||||
,wxWindowID vId
|
||||
,const wxString& rsTitle
|
||||
,const wxPoint& rPos
|
||||
,const wxSize& rSize
|
||||
,const wxArrayString& asChoices
|
||||
,int nMajorDim = 0
|
||||
,long lStyle = wxRA_HORIZONTAL
|
||||
,const wxValidator& rVal = wxDefaultValidator
|
||||
,const wxString& rsName = wxRadioBoxNameStr
|
||||
);
|
||||
|
||||
void Command(wxCommandEvent& rEvent);
|
||||
bool ContainsHWND(WXHWND hWnd) const;
|
||||
virtual bool Enable(bool bEnable = TRUE);
|
||||
|
Reference in New Issue
Block a user