LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Table Control: changing the cursor selected cell properties

Solved!
Go to solution

Hello, I am new to the forum and I’m looking for some help on a table feature.

 

I am using the property nodes to change the preferences of the table, such as the font color and size, background color, bold, italic, strikethrough and so on. Right now, using active cell, I can change the properties of a single cell, row, column, or header (using indices), and I can select all the cells with -2,-2.   However I want to be able to select a region of cells and change the properties of only those cells. 

 

When the table front panel is open I can click and drag the cursor to select a contiguous region (outlined in blue)

 

Is it possible to recognize the selection so I can change the properties of just the few cells I have selected? 

 

 

17753i7D62840CC4116D8A

0 Kudos
Message 1 of 4
(3,950 Views)

You can use the Table Control's Selection Start and Selection Size properties to determine which elements are selected.

 

You may have to iterate over each cell to set the color, font etc... Use Front Panel 'Defer Updates' option to improve the performance and reduce the 'flashing' of the updates.

 

 

 

Message 2 of 4
(3,943 Views)
Solution
Accepted by topic author Goody 01

Hi, it's easy : when the mouse is released, you can check which part of the table is selected, and the begining of the selection :

 

17763iF06797795B9E05E417765i721F64FDD39E70DC

 

 

I joined the VI in Labview 2009.

 

 

V-F
Message 3 of 4
(3,939 Views)

Great! Thanks for your help

0 Kudos
Message 4 of 4
(3,928 Views)