I am not sure that I am doing the following correctly. I am trying to determine with current row and column (more important row) where the double click event occurs. With a read only SIGrid and using the SI_GRID_MSG_DBLCLICK function along with
Dim SelRowCol As siSelectedRowCol Ptr
Local RowTemp As Long
Local ColTemp As Long
SelRowCol=VarPtr(lpSelectedRowCol)
RowTemp=@SelRowCol.Row
ColTemp=@SelRowCol.Col
returns the wrong results. Any help appreciated.
-David
Hi David,
Your problem is that you are using the VarPtr. Remove that and it will work. You see, using Varptr returns the memory address for the lpSelectedRowCol VARIABLE. What you want is the value held in that variable which is the address to the lpSelectedRowCol structure.
Clear as mud?
:)
thanks. worked like a charm.