LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Trigger a popup when double clicking a table cell in CVI 6

Hello ,
I want to popup a window when double clicking a table cell , how to do this ? Thanks.

David
0 Kudos
Message 1 of 3
(2,729 Views)
Create a callback function for the table and add a case for EVENT_LEFT_DOUBLE_CLICK. In that case, create your popup with InstallPopup() or one of the CVI popups like MessagePopup() or ConfirmPopup(), etc.
0 Kudos
Message 2 of 3
(2,729 Views)
David,

As Al_S sais, it's just a matter of setting a callback in the double click, however if you are reading the cell value where the double click took place then you need to be more careful in the way you read the cell value.

When you get the callback the value of the selected cell is not updated yet, so you need to use PostDeferredCallback and read the values in that second call. There is some information here:

http://exchange.ni.com/servlet/ProcessRequest?RHIVEID=101&RNAME=ViewQuestion&HOID=50650000000800000023280000&ECategory=LabWindows%2FCVI

I hope this helps.

Regards,

Juan Carlos
N.I.
0 Kudos
Message 3 of 3
(2,729 Views)