Friday, April 03, 2009

Tree Control Scrollbar Tip

One of my colleagues recently showed me a VI that automatically shows and hides the scrollbars of the tree control, as well as resizing the columns, depending on the text in the cells. Those of you who are familiar with the tree control are probably aware that it doesn't have this capability built-in.

The VI isn't in the palettes but is in the tree folder of vi.lib. It's called

To see a brief demo of the functionality, check out this video on my website. If you have trouble viewing that video, you can try the YouTube version.


Blogger Darren Nattinger said...

This VI was the topic of my Groundhog Day '09 nugget:

11:33 PM, April 03, 2009  
Blogger lvurs said...

Of course Darren the gold miner and nugget creator found it first! It's a nice helper. Generally I think that such features should be built into controls and indicators. On the other hand however, it should be achieved without creating additional execution overhead. Therefore it might be a very good thing to pair provided helpers with their FP-objects as demonstrated with

BTW: Christina, from your video I learned how to easily create a FP-object reference constant on the BD. Thank you mucho.

6:41 AM, April 12, 2009  
Blogger Christina said...

Well, I'm not going to try to claim I know anything about using LabVIEW that Darren doesn't know. :-)

lvurs - I agree, I wish it was built into the control, but it's also good to see how much you can extend LabVIEW using LabVIEW. I'm glad you found something useful in the video!

8:12 PM, May 11, 2009  

Post a Comment

<< Home