Veto wxListCtrl selection.

BlitzMax Forums/Brucey's Modules/Veto wxListCtrl selection.

rs22(Posted 2008) [#1]
Is it possible to veto the selection of a particular line in a wxListCtrl?


Brucey(Posted 2008) [#2]
Not directly, it seems.

I suppose one way you might try, is to catch a left mouse down event, and then HitTest the position against the listctrl in order to find out which item you are on.
If it is one you want to ignore, you might then be able to Skip the mouse down event, which in theory should stop it getting as far as selecting the item.