Is there a way to only highlight a cell instead of the whole row when it's clicked with wx.ListCtrl?

StackOverflow https://stackoverflow.com/questions/18481533

  •  26-06-2022
  •  | 
  •  

문제

I noticed wx.ListCtrl would always highlight a whole row wherever it's clicked by default, is there a way to make it only highlight the selected cell?

도움이 되었습니까?

해결책

No, I think that's built-in. You would have to catch the selection event and probably make all the cells editable so you could select just the cell. Otherwise I would look at UltimateListCtrl as that is a custom widget and you can probably subclass it in such a way as to add that functionality.

Or don't use a ListCtrl at all and switch to using a wx.Grid

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top