Using DataViewVirtualListCtrl and as promised if you have handlers for on_selection and on_context, the on_context is handled first. What I want is to differentiate between a left or right click in the on_selection handler. The reason is that the on_selection causes a database read, to read the details of the selected item and can reset the list. This then means that the on_context gets the wrong item due to the context switch in the underlying data.
So how can I tell that I need to reset the data if it’s a left click and leave the data alone if it’s a right click? I’m looking someplace in the event structure for the type of button pushed, but it’s not obvious to me where that is.