LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

To define a new event for table

Hi all,

 

I understand that we can create new user defined events ....but i exactly did not understand how to do so...

 

My concern is i have a table where i get the values. now if i double click on any cell of the table, i have to the value of that particular cell in an indicator i have...by default there is no double click event defined for table, and it is infact only available with multicolumn listbox(for my knowledge)...

it would be kind help if anyone could suggest something on this as soon as possible as i need it quite urgently..

 

thanks in advance

0 Kudos
Message 1 of 5
(2,544 Views)

You can use a "mouse down" event, then calculate the cell position from the pixel coordinates supplied by the even terminal.

0 Kudos
Message 2 of 5
(2,540 Views)

Hey thanks for ur reply....i have already tried out that option and i was not able to convert the cordinates of pixels into cell...how can i do that?

0 Kudos
Message 3 of 5
(2,529 Views)

Of course this will only easily work well if all cells have the same size, but maybe you could so something similar to how I detect which tic-tac-toe field is clicked in one of my old examples.

 

Have a look at the code posted here: A full featured 4x4 Tic Tac Toe Game

 

Let me know if this works for you. Good luck! 🙂

0 Kudos
Message 4 of 5
(2,512 Views)

There is a 'Point to Row-column'  method for the table.

Run this method if you have a 'Double Click' = True flag for a mouse down event on the table.

 

Ton

Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas

LabVIEW, programming like it should be!
Message 5 of 5
(2,491 Views)