LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to change the CellBGColor of a subtable

Hi
I show and edit big arrays in tables. There are different, sometime big areas with different TableBGColors. To set the colors of this areas, I have to set the color of every single cell which is VERY slow. I can set the color of the whole table by setting the active cell to (-2,-2) or a row by setting the active cell to (5,-2).
Is there a way to select a subarea like 'uper left cell (10,0) to lower right cell (150,30)' to which I can set the CellBGColor in one command. Working with the DeferPanUpdts-Option is not a satisfying solution.

Thanks for your Help
Codas

0 Kudos
Message 1 of 4
(2,791 Views)
Although you do not have such a property node, You could update a property node inside a 'For, loop or 2 nested 'for' loops and programatically control this change of Cell BG color
 
Regards,
Dev
0 Kudos
Message 2 of 4
(2,783 Views)
That's exactly what I do and it is slow for big arrays.

Codas
0 Kudos
Message 3 of 4
(2,780 Views)

When I find manipulation of a graphic object is slow, I often try two techniques that can may help.

1) Defer Front Panel Updates - when set true will prevent LV from update the front panel. If the updates are defered before the properties are applied and then "un-defered" this often speeds things up because LV can just deal with all of the updates at once rather than repainting the screen with each change.

2) If the Defer FP is not enough, then try set the object visability = F AFTER the FP is defered and before doing the property things. After, set visable = T then un-defer FP updates.

Just trying to help,

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 4 of 4
(2,771 Views)