X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/131b1fba9dbedc86a0b5d7861ca374800f3ad40d..9611b7975f7c5cd86f0be0d6adcc67f7ddd98c72:/src/univ/combobox.cpp diff --git a/src/univ/combobox.cpp b/src/univ/combobox.cpp index dadd741eae..9d8033a7d8 100644 --- a/src/univ/combobox.cpp +++ b/src/univ/combobox.cpp @@ -185,7 +185,7 @@ void wxComboListBox::OnLeftUp(wxMouseEvent& event) wxCommandEvent evt(wxEVT_COMMAND_COMBOBOX_SELECTED,m_combo->GetId()); evt.SetInt(wxListBox::GetSelection()); evt.SetEventObject(m_combo); - m_combo->ProcessEvent(evt); + m_combo->ProcessWindowEvent(evt); event.Skip(); } @@ -205,7 +205,7 @@ wxSize wxComboListBox::GetAdjustedSize(int minWidth, void wxComboBox::Init() { - m_lbox = (wxListBox *)NULL; + m_lbox = NULL; } wxComboBox::wxComboBox(wxWindow *parent, @@ -273,7 +273,7 @@ wxComboBox::~wxComboBox() // wxComboBox methods forwarded to wxTextCtrl // ---------------------------------------------------------------------------- -wxString wxComboBox::GetValue() const +wxString wxComboBox::DoGetValue() const { return wxComboCtrl::GetValue(); } @@ -283,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(); @@ -337,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); @@ -412,6 +422,16 @@ 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);