X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/61c083e7818114734695cb26aa006098a86e62c3..da98e15760bfcad41a5579e64955caadc2e535f3:/samples/widgets/combobox.cpp diff --git a/samples/widgets/combobox.cpp b/samples/widgets/combobox.cpp index 9bfdc11157..c4efd25cfe 100644 --- a/samples/widgets/combobox.cpp +++ b/samples/widgets/combobox.cpp @@ -536,7 +536,7 @@ void ComboboxWidgetsPage::OnComboText(wxCommandEvent& event) if (event.GetEventType() == wxEVT_COMMAND_TEXT_ENTER) wxLogMessage(_T("Combobox enter pressed (now '%s')"), s.c_str()); else - wxLogMessage(_T("Combobox text changed (now '%s')"), s.c_str()); + wxLogMessage(_T("Combobox text changed (now '%s')"), s.c_str()); } void ComboboxWidgetsPage::OnComboBox(wxCommandEvent& event) @@ -545,6 +545,8 @@ void ComboboxWidgetsPage::OnComboBox(wxCommandEvent& event) m_textDelete->SetValue(wxString::Format(_T("%ld"), sel)); wxLogMessage(_T("Combobox item %ld selected"), sel); + + wxLogMessage(_T("Combobox GetValue(): %s"), m_combobox->GetValue().c_str() ); } void ComboboxWidgetsPage::OnCheckOrRadioBox(wxCommandEvent& WXUNUSED(event))