U++ framework
Do not panic. Ask here before giving up.

Home » U++ Library support » ArrayCtrl, HeaderCtrl & GridCtrl » [Bug]ArrayCtrl,MultiSelect.In WhenSel callback, selection status of last selected row is incorrect
Re: [Bug]ArrayCtrl,MultiSelect.In WhenSel callback, selection status of last selected row is incorrect [message #51785 is a reply to message #51750] Mon, 27 May 2019 15:48 Go to previous messageGo to previous message
Maginor is currently offline  Maginor
Messages: 44
Registered: May 2019
Member
I have tried to debug it some more..

There seems to be two bugs:
- if you ctrl-click a row, the row is not marked as selected before the WhenSel callback is called.
- if you ctrl-click to deselect a row or to select a row when there is no previous selection, the WhenSel callback is not called at all.

I did find a workaround, which is to use WhenAction instead of WhenSel. WhenAction is called once when the cursor moves and then once again after the selection is updated. The only problem is that since it is called twice it does all the heavy lifting of updating my plot twice every time (it seems fine with my current dataset, but could potentially be problematic with a larger one).
 
Read Message
Read Message
Read Message
Previous Topic: ArrayCtrl::Paint is called three times
Next Topic: Restore original row order
Goto Forum:
  


Current Time: Wed Oct 07 16:46:39 GMT+2 2026

Total time taken to generate the page: 0.03340 seconds