X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a236aa2058ccf3d36e9cafc20fa7375080c4be50..0372d42ea50de251b381c22855b372a967bc04d9:/src/univ/combobox.cpp diff --git a/src/univ/combobox.cpp b/src/univ/combobox.cpp index 1ca6ffd795..2656c76d15 100644 --- a/src/univ/combobox.cpp +++ b/src/univ/combobox.cpp @@ -92,6 +92,8 @@ protected: void OnLeftUp(wxMouseEvent& event); private: + friend class wxComboBox; // it accesses our DoGetItemClientData() + DECLARE_EVENT_TABLE() }; @@ -281,6 +283,11 @@ void wxComboBox::SetValue(const wxString& value) wxComboCtrl::SetValue(value); } +void wxComboBox::WriteText(const wxString& value) +{ + if ( GetTextCtrl() ) GetTextCtrl()->WriteText(value); +} + void wxComboBox::Copy() { if ( GetTextCtrl() ) GetTextCtrl()->Copy(); @@ -335,6 +342,11 @@ void wxComboBox::SetSelection(long from, long to) if ( GetTextCtrl() ) GetTextCtrl()->SetSelection(from, to); } +void wxComboBox::GetSelection(long *from, long *to) const +{ + if ( GetTextCtrl() ) GetTextCtrl()->GetSelection(from, to); +} + void wxComboBox::SetEditable(bool editable) { if ( GetTextCtrl() ) GetTextCtrl()->SetEditable(editable); @@ -410,6 +422,21 @@ int wxComboBox::GetSelection() const #endif } +wxString wxComboBox::GetStringSelection() const +{ + return GetLBox()->GetStringSelection(); +} + +wxClientDataType wxComboBox::GetClientDataType() const +{ + return GetLBox()->GetClientDataType(); +} + +void wxComboBox::SetClientDataType(wxClientDataType clientDataItemsType) +{ + GetLBox()->SetClientDataType(clientDataItemsType); +} + int wxComboBox::DoInsertItems(const wxArrayStringsAdapter & items, unsigned int pos, void **clientData, wxClientDataType type) @@ -419,12 +446,12 @@ int wxComboBox::DoInsertItems(const wxArrayStringsAdapter & items, void wxComboBox::DoSetItemClientData(unsigned int n, void* clientData) { - GetLBox()->SetClientData(n, clientData); + GetLBox()->DoSetItemClientData(n, clientData); } void *wxComboBox::DoGetItemClientData(unsigned int n) const { - return GetLBox()->GetClientData(n); + return GetLBox()->DoGetItemClientData(n); } bool wxComboBox::IsEditable() const