LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Tree control uses grey 3D scrollbar, panes use classic blue. Tree scrollbar functionality is better for trees. How can I get all the scrollbars on a screen to look the same?

My operator interface uses panes with scrollbars as well as a tree control with scrollbars.  The tree scrollbar is a modern 3D type, whereas the panes use a more classic blue scrollbar.  It does not look good to have the two types of scrollbars on one page.
 
One solution I tried was to use the pane scrollbars to scroll the tree control, and that solves the appearance problem.  However the functionality of the tree's scrollbar is much better for a tree.
 
A pdf of the screen is attached showing the tree horizontal scrollbar in the right pane and the pane scrollbars in the lower left pane.
 
Any solutions?
 
Doug Mumford
0 Kudos
Message 1 of 9
(3,114 Views)
If you use a system tree instead of a modern tree, it will take on the appearance of windows controls and you will get the blue scroll bars.
0 Kudos
Message 4 of 9
(3,095 Views)
Thanks Marc.  Your solution works perfectly.  Cosmetically I would like it if the pane scrollbars could be the modern 3D ones used on the modern tree, but that's fairly minor cosmetics, and I understand that panes are properly system objects.

While we're on the subject of trees, I've specified "5 columns" with the system property, but the actual display has many more.  You can see by the image I attached the right pane shows all 5 columns, but the horizontal scrollbar indicates there is that much again off to the right.  I don't want the user to be able to scroll to those blank columns.

Any ideas?  And yes, although I've been using LabVIEW for about 15 years, I'm new to LV 8.
0 Kudos
Message 5 of 9
(3,085 Views)
Right click the tree control. Visible items -> horizontal scrollbar. This will keep the user from scrolling to the right. Then you just have to size the tree control to the amount of columns you want.
0 Kudos
Message 6 of 9
(3,080 Views)
The user can (for valid reasons) make the right pane narrower than the 5 columns, so I need to keep the horizontal scrollbar visible on the tree control.  And as long as it's visible the user can scroll off to the empty columns on the right.  Any other ideas?
0 Kudos
Message 7 of 9
(3,077 Views)
Oh I see, when you resize the pane, the tree control resizes, but you just want the 5 columns to resize without the scrollbar. Disable the scrollbar and resize the pane, maybe it'll just work. If not there are other options. You could catch the event generated when the pane is resized and calculate the width of each column based on the width of the tree control. It's a bit tedious, but I don't see any other way if the columns aren't automatically scaled with the tree.
0 Kudos
Message 8 of 9
(3,069 Views)
I found a simpler way.  Just stick a property node, Active Column Number and Width, in a for loop and make columns 5 through 100 (some arbitrarily large number) have width 0.  You'd think when you set the number of columns there would only be that many visible, but for some reason that is not the case.

Thanks for your help -- you got my brain rolling!
0 Kudos
Message 9 of 9
(3,057 Views)