if one clicks first on line 3 and then on line 1, the selection event is correct, but GetSelection on the listbox lags on selection event behind, therefore switch to PostEvent

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27450 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor
2004-05-26 04:34:49 +00:00
parent fba8e95e92
commit be1aa07f8a
2 changed files with 6 additions and 2 deletions

View File

@@ -106,7 +106,9 @@ static pascal void DataBrowserItemNotificationProc(ControlRef browser, DataBrow
event.SetString( list->GetString(i) );
event.SetInt(i) ;
event.SetExtraLong( list->HasMultipleSelection() ? message == kDataBrowserItemSelected : TRUE );
list->GetEventHandler()->ProcessEvent(event) ;
wxPostEvent( list->GetEventHandler() , event ) ;
// direct notification is not always having the listbox GetSelection() having in synch with event
// list->GetEventHandler()->ProcessEvent(event) ;
}
break ;