12-26-2010 07:57 PM
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.
12-27-2010 05:35 PM
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 surprise![]()
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
12-27-2010 07:12 PM
you need to disable front panel updates.
12-27-2010 07:28 PM
disable panel update does't help, i tried this before.
12-27-2010 07:41 PM
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?
12-27-2010 08:51 PM - edited 12-27-2010 08:52 PM
@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
12-28-2010 12:50 AM
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.
12-28-2010 01:14 AM
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
12-28-2010 01:44 AM
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.
12-28-2010 02:31 AM
"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