LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

highlight table cell speed

hi all

 

i'd like to highlight some cells in a table using method

"Active Cell:Cell Background Color Property", but it takes about 12 seconds to highlight 1000*2 cells(1000 lines, 2 column). it is not acceptable.

 

any idea to improve it? thanks.

 

testing vi attached.

0 Kudos
Message 1 of 17
(4,411 Views)

Table Bug.png

 

I don't think you can use background color on multiple active cells without changing every cell (buggy behavior)  In fact try changinging the second property node to ActiveCell.BackgroundColor and prepare for a surpriseSmiley Wink

 

You can highlight 1000 rows by 2 columns running the VI as is but, you change the border color of the selected cells.  This might be enough to set off these cells from the rest for your purposes


"Should be" isn't "Is" -Jay
Message 2 of 17
(4,382 Views)

you need to disable front panel updates.

0 Kudos
Message 3 of 17
(4,373 Views)

disable panel update does't help, i tried this before.

 

0 Kudos
Message 4 of 17
(4,369 Views)

hi jeff Bohrer

 

thank you for your reply.

 

"In fact try changinging the second property node to ActiveCell.BackgroundColor and prepare for a surprise", what do you mean?

 

and the selection function which table control provides, in terms of function, it is ok, but seems strange. i'd like to implement the effect like excel, change 

background color to indicate the selection.

 

any idea? 

 

 

0 Kudos
Message 5 of 17
(4,366 Views)

 


@brian005 wrote:

hi jeff Bohrer

 

thank you for your reply.

 

"In fact try changinging the second property node to ActiveCell.BackgroundColor and prepare for a surprise", what do you mean?

 


Did you try? 

 

 


i'd like to implement the effect like excel,
Me Too,  looks buggy to me

 

 


"Should be" isn't "Is" -Jay
0 Kudos
Message 6 of 17
(4,356 Views)

hi Jeff Bohrer

 

sorry, i tried changing the second property node to ActiveCell.BackgroundColor in my code, and also change the node to ActiveCell.BackgroundColor in your code, but i cannot figure out what is the surprise.

 

i am using labview 8.2

 

may be you can attached your code? thanks.

 

 

0 Kudos
Message 7 of 17
(4,343 Views)

Hi Brian,

 

I am assuming that you are specifying the row# as -1 to select the entire row. If the no. of cells to be highlighted is much greater than the non-highlighted cells in a column, it is better to highlight the entire column using -1 row# and remove the highlight for the required cells.

 

Thanks,

Priyadarsini S

0 Kudos
Message 8 of 17
(4,339 Views)

hi Priyadarsini

 

thanks for reply

 

you mean highlight all first, then remove those not required cells?

 

but this is a table control with horizontal and vertical scrollbar, seems like the no of cells to be highlighted is always less than the non-highlighted cells, since you can scroll down forever.

 

0 Kudos
Message 9 of 17
(4,334 Views)

"you mean highlight all first, then remove those not required cells?"   Yes, that's what I meant.

 

Also for your other point, you can always restrict the scrolling within some limits - either with the same scrollbar or with the custom scrollbar(under numeric palette).

 

 

Thanks,

Priyadarsini S

0 Kudos
Message 10 of 17
(4,321 Views)