From: Mattia B. <mb...@ds...> - 2002-03-31 20:42:45
|
> > > hi all, > > > > > > is it possible that the application deselects an item itself? > > > i couldn't figure out how to do this. <snipped my explanation how to do it> > yes, i didn't understand the wxwindows documentation but i understand > yours... thanks... > > but i found out a better way to solve my problem... > i use now "GetNextItem" with "wxLIST_NEXT_BELOW" but it dosn't work the way > i expect it... BTW, the docs for wxLC::GetNextItem use wxLIST_NEXT_ALL to search for the next selected item. > if i pass the last selected item to it, i think it should return "-1"... but > it returns the item i passed to GetNextItem... Strange, doesn't happen for me. > if i pass "-1" as item, it doesn't find the next (first) selected item... Possibily because it looks like BELOW means 'in the same column' ( at least for icon views ) and a -1 item isn't in any column, so there can't be any item in the same column, right? Are you using the wxLC in icon or report mode? Doesn't wxLIST_NEXT_ALL work for you? What are you exactly trying to achieve? As usual: minimal patch against listctrl ( or another ) example showing the problem welcome. Regards Mattia |