LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Table control

I am trying to select an entire row when the user click on a cell.
Actually, when a user clicks on the table control, only the cell is selected.
If i try to handle the EVENT_COMMIT on the table and use the function GetActiveTableCell,
it returns the preceding selected cell, not the new one (?!).
Any help is welcome
Thanks
0 Kudos
Message 1 of 2
(3,063 Views)
This is because the EVENT_COMMIT has not been processed yet, which will select
the current cell. To get the cell that was clicked on for any event use
the GetTableCellFromPoint function with the mouse coordinates which are passed
to you in eventData1 and eventData2 of the callback, like:
GetTableCellFromPoint (panelHandle, PANEL_TABLE, MakePoint(eventData1, eventData2),
&cell);

Best Regards,

Chris Matthews
Measurement Studio Support Manager
"Philippe" wrote:
>>I am trying to select an entire row when the user click on a cell.>Actually,
when a user clicks on the table control, only the cell is selected.>If i
try to handle the EVENT_COMMIT on the table and use the function GetActiveTableCell,>it
returns the preceding selected cell, not th
e new one (?!).>Any help is welcome
>Thanks>
0 Kudos
Message 2 of 2
(3,062 Views)