Good day.
Is there any way to determine in which column a double-click occurred on a ListView item? Just to clarify—I don’t mean the row number, but the column within that row, assuming the control is set to select the entire row.
I’ve tried using the mouse coordinates via msg
, then converting them with Dlg.ScreenToClient()
to get an X point relative to the dialog window.
After a few calculations based on the known position of the ListView and their column widths, it's possible to estimate the column number with decent accuracy.
The issue happens when the ListView’s content is horizontally scrollable and the view is scrolled to the right. There's no way to determine if the firsts columns are currently off-screen, which breaks the calculation.
Is there any way to get this information? I assume that functionality isn’t currently available in DOpus dialogs?
Thanks in advance.
Btw, I found a similar question/response but for C#, in case that's somehow relevant