LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Enter Key action in the Table control

Hello,

 

     I have a Table control (Labview 2013 SP1)   and have made the following assumption....

 

1.) When I modify the text in a cell and press the "Enter/Return" key I will get a "table change" event

 

What is really happening is that the position in the cell moves down one row and I do not see a table change event. However when I modify a cell and use the "tab key" everything works that way I want it to. So is there a way to have the "Enter/Return" key function just like the "Tab Key" in a table control?

 

I am trying to avoid having to trap a "key down state" in the table and figure out what key way pressed and/or compare the old and new values to update the edit position.

Regards,


Kaspar
0 Kudos
Message 1 of 6
(4,846 Views)

Hello,

 

   I am getting a "Table change" event when I press the enter key, however the "Edit position" property node is set to (-2,-2) which is not the cell location that I edited

Regards,


Kaspar
0 Kudos
Message 2 of 6
(4,828 Views)

If you want the edited cell:

 

Example_VI.png

 

I'm not sure what else you're asking.

Jim
You're entirely bonkers. But I'll tell you a secret. All the best people are. ~ Alice
For he does not know what will happen; So who can tell him when it will occur? Eccl. 8:7

Message 3 of 6
(4,817 Views)

Check your LabVIEW Environment Options; the option 'End text entry with Enter key' is normally not checked.  This default behavior places a CR/LF in your control, rather than ending the entry.

0 Kudos
Message 4 of 6
(4,811 Views)

Hello,

 

   I will check the box in the environemnts setting just to see how it works. However changing the environment settings will apply to everything I do and it will also not be part of the code for this specific project. Is there a way to programtically do this?

Regards,


Kaspar
0 Kudos
Message 5 of 6
(4,806 Views)

Hello,

 

  I decided not to use this option (if it worked) because it would affect every project and/or code that I worked on. This would be difficult to have others being able to work and/or support the code

Regards,


Kaspar
0 Kudos
Message 6 of 6
(4,795 Views)