LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Is it possible to programmatically change the font of all of the parent categories in a tree control without changing the children?

I am changing the tree programmatically to relay the results of a search, and I would like to change the font of JUST the parents to bold (or possibly changing the font size as well).  Is it possible to do this without running through a for-loop and actively selecting each parent and then applying the font changes?  For instance, I would like to go from the first figure to the second.

 

 

Figure 1 (no bold).png  >>>>>>  Figure 2 (bold+bigger).png

 

Thanks.

0 Kudos
Message 1 of 4
(2,995 Views)

Hi edweir,

why is running through a for loop a problem? If you defer panel updates, then it looks like a jump from your first image to the second.

 

Mike

0 Kudos
Message 2 of 4
(2,981 Views)

hmm...

 

Mostly I was just worried about the case when I have a huge amount of entries and watching the panel slowly change... However, deferring the front panel update might be a solution.  I'll check that out.

 

Re: the original question, it is not possible then to change properties for all elements at once i.e. all the parents or all the children?

 

Erik 

0 Kudos
Message 3 of 4
(2,965 Views)

Returning to the step before I thought that I was at... how do I select the active cell for the tree control.  I tried to set the ActiveItem Tag property, but it only sets the active item and does not set the ActiveCell (at least I think so..), because the property that I try to set in ActiveCell does not properly change...

 

Suggestions on how to select the ActiveCell programmatically?

 

 

0 Kudos
Message 4 of 4
(2,959 Views)