From: Mattia B. <mb...@ds...> - 2002-05-01 17:45:28
|
> hello, > i get an unexplainably "EVT_LIST_ITEM_DESELECTED"... It looks like this is the native Win32 ListViev behaviour, and it is consistent with wxGTK, so I think it is correct. > you can reproduce it with the listctrl sample: > - remove "wxLC_EDIT_LABELS|" on line 97 > - add something like "print "here\n";" after line 512 > (to better see the event) > - start the sample > - set the list to multiple selection (menu -> List -> last one) > - click on an item > - click on the SAME item again -> "EVT_LIST_ITEM_DESELECTED" > you get an "here" on the console (or whatever's in your print line) > > i mean no item is deselected. this shouldn't occur?!?!? > has anyone an explanation / workaround? Blame Microsoft ;-p ? Seriously, you may set a flag in the event handler and do whatever you want to do in idle time ( you should receive events in this order: deselect -> select -> idle, so you may catch this special case ) > Wx 0.11 beta 4 > Active Perl 631 Regards Mattia |