Hi Atom,
I need to capture the event on Item clicked in a uiListBox (for example, Left or Right mouse buttons).
I first used the OnMouseDown method but that one is reacting even when the user is just using the scrollbar. Is there a way to isolate the click on an item?
Otherwise, this method is good as it provides the event object that I can use to know which button is pressed and I can retrieve the Item clicked by looking at getSelectedRow(0)
Then I saw the OnItemClicked method. Direct access to the Item number BUT no indication of the event.
I thought to use this method in combination with OnMouseDown.
In this second case, I’m using the OnMouseDown to track the event and button and I use the OnItemClicked method for action depending on the item and button clicked.
Issue: it seems that the OnItemClicked method is processed BEFORE OnMouseDown and thus i’m not getting satisfactory result. I saw this by doing some console outputs.
So:
- do you have some proposal to handle this with the current Ctrlr possibilities?
- if not, would it be possible to add the event object as third argument of the OnItemClicked method?
Thx in advance!