Set string in wxEVT_COMMAND_COMBOBOX_SELECTED event in wxOSX/Cocoa.
Pass the selected string and not only its index in the event generated when combobox selection changes in wxOSX/Cocoa. Closes #14383. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71941 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
		@@ -672,6 +672,12 @@ void ComboboxWidgetsPage::OnComboBox(wxCommandEvent& event)
 | 
			
		||||
    wxLogMessage(wxT("Combobox item %ld selected"), sel);
 | 
			
		||||
 | 
			
		||||
    wxLogMessage(wxT("Combobox GetValue(): %s"), m_combobox->GetValue().c_str() );
 | 
			
		||||
 | 
			
		||||
    if ( event.GetString() != m_combobox->GetValue() )
 | 
			
		||||
    {
 | 
			
		||||
        wxLogMessage("ERROR: Event has different string \"%s\"",
 | 
			
		||||
                     event.GetString());
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void ComboboxWidgetsPage::OnCheckOrRadioBox(wxCommandEvent& WXUNUSED(event))
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user