LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

table select

Is there a way to let the user highlight a cell but not be able to edit the cell.
0 Kudos
Message 1 of 10
(4,539 Views)
Never mind the selecting but not editing, I was able to figure it out. I am how ever unable to select multiple rows which are not in succession to each other.
0 Kudos
Message 2 of 10
(4,532 Views)
Hi Jim_81,

I am not sure if I understand entirely what you mean by selecting a cell. There is an example available on ni.com that demonstrates how to highlight an entire row in a table. In the example, each time a new row is selected, the previous highlighting is removed. With some simple modifications it is possible to have the highlighting remain so that multiple rows are highlighted.

I have attached the example to this post for you convenience.

Scott Y
NI
0 Kudos
Message 3 of 10
(4,520 Views)
Hi  Scott
0 Kudos
Message 4 of 10
(4,464 Views)
Hi Scott Y,
can
0 Kudos
Message 5 of 10
(4,463 Views)
Hi Scott Y,
can you
0 Kudos
Message 6 of 10
(4,467 Views)
Hi Scott Y,
sorry about that i dont know what happend.
 
can you seand this example for labview ver 7.0?
 
regards,
e.
0 Kudos
Message 7 of 10
(4,462 Views)

Hi Jim_81,

Here is the code for LabVIEW 7.0.

Megan B.
National Instruments

0 Kudos
Message 8 of 10
(4,445 Views)

Hi, Megan B.

how do i modify this code to able select line with mouse key,key up and key down?..

regards,

eyal.

 

0 Kudos
Message 9 of 10
(4,436 Views)

In this case, all you have to do is surround the EditPos property and the cluster with an event structure and have that as the mouse down event. Assuming that by key up and down you mean the up and down arrows, simply add a key down event and check the VKey terminal. If you pressed up or down, increment or decrement previous row value which came out of the shift register. Add another case for the stop button and you're done.

If this isn't what you want, you should explain some more.

To learn more about LabVIEW, I suggest you try searching this site and google for LabVIEW tutorials. Here and here are a couple you can start with. You can also contact your local NI office and join one of their courses.
In addition, I suggest you read the LabVIEW style guide and the LabVIEW user manual (Help>>Search the LabVIEW Bookshelf).


___________________
Try to take over the world!
0 Kudos
Message 10 of 10
(4,432 Views)