LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Is there a way to add scroll bar to a front panel cluster control?

Solved!
Go to solution
Solution
Accepted by topic author NI-hilator

For anyone discovering this thread in the future looking for a scrollable cluster, there is an example that ships with LabVIEW that illustrates one possible approach:

 

[LabVIEW 20xx]\examples\Controls and Indicators\Numeric\Vertical Scrollbar.vi

0 Kudos
Message 11 of 16
(2,008 Views)
Solution
Accepted by topic author NI-hilator

The example mentioned by Darren can also be found with the NI Example Finder by typing Scroll bar in the search field. It is also available under LabVIEW 2017.

0 Kudos
Message 12 of 16
(1,986 Views)

Since more and more of us are moving away from dialup connections to the interwebs ( hint I can't see the example on my mobile device) could you describe the basic approach?

 

Winging it... cluster on the FP of a subvi in a subpanel?


"Should be" isn't "Is" -Jay
0 Kudos
Message 13 of 16
(1,977 Views)

The actual VI called "Vertical Scrollbar.vi" from my LV 2017 installation

C:\Program Files (x86)\National Instruments\LabVIEW 2017\examples\Controls and Indicators\Numeric\Vertical Scrollbar.vi  It's really quite slick.  One could easily make it a subvi and pass in control references or implement something with user events to make it modular and reusable

 

Here's a screenshot of the front panel

NIhilator_0-1656419985514.png

In case you can't read the text, here is the approach: "This is a cluster indicator that contains multiple LEDs outside its visible bounds. There is a Vertical Scrollbar control next to the cluster that can be used to programmatically change the viewing position of the contents of the cluster. "

 

Not sure you can see snippets on your device, but here it is:

Vertical Scrollbar vi from LV Example finder.png

 

The "cluster on the FP of a subvi in a subpanel" was another approach mentioned by @davidpcl.

 

These mentioned approaches are ok for runtime only. I am curious why the "Vertical Scrollbar Visible" and "Horizontal Scrollbar Visible" cluster properties mentioned by @pccardinal were deprecated.

NIhilator_1-1656420478044.png

 

 

 

Message 14 of 16
(1,963 Views)

Thanks!  .pngs are no problem but there is still no vi viewer for Android!  And, of course the shipping example finder is rather pointless without LabVIEW on my device.


"Should be" isn't "Is" -Jay
0 Kudos
Message 15 of 16
(1,953 Views)

@NI-hilator wrote:

  It's really quite slick.


Thank you very much. 🙂 

 


@NI-hilator wrote:

 

I am curious why the "Vertical Scrollbar Visible" and "Horizontal Scrollbar Visible" cluster properties mentioned by @pccardinal were deprecated.


Those are experimental properties. They only work at run-time, and they leave drawing artifacts on the controls in some cases. There are probably other unknown, unfinished edges to them as well. NI never productized those properties, so they were deprecated.

Pro-tip: You can still set deprecated properties/methods with Quick Drop if you want to play around with them, as long as you know the exact name of the property/method. So for example, if you want to play around with one of those deprecated properties, you can do this:

1. Create a property node for the control that only has one property.
2. Select the property node.
3. Press Ctrl-Space to bring up Quick Drop.

4. Type the exact name of the property you want (for example, 'horizontal scrollbar visible', case-insensitive)
5. Press Ctrl-Shift-B. The property/invoke node will be set to the property/method name you typed.

0 Kudos
Message 16 of 16
(1,940 Views)