Applied patch [ 919791 ] [widgets sample] Update wxListbox selection handling
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26313 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
		@@ -493,10 +493,13 @@ void ListboxWidgetsPage::OnUpdateUIAddSeveral(wxUpdateUIEvent& event)
 | 
			
		||||
 | 
			
		||||
void ListboxWidgetsPage::OnListbox(wxCommandEvent& event)
 | 
			
		||||
{
 | 
			
		||||
    long sel = event.GetInt();
 | 
			
		||||
    long sel = event.GetSelection();
 | 
			
		||||
    m_textDelete->SetValue(wxString::Format(_T("%ld"), sel));
 | 
			
		||||
 | 
			
		||||
    wxLogMessage(_T("Listbox item %ld selected"), sel);
 | 
			
		||||
    if (event.IsSelection())
 | 
			
		||||
        wxLogMessage(_T("Listbox item %ld selected"), sel);
 | 
			
		||||
    else
 | 
			
		||||
        wxLogMessage(_T("Listbox item %ld deselected"), sel);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void ListboxWidgetsPage::OnListboxDClick(wxCommandEvent& event)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user