06-27-2022 01:27 PM
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
06-27-2022 03:37 PM
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.
06-27-2022 09:22 PM
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?
06-28-2022 07:55 AM
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
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:
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.
06-28-2022 08:12 AM
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.
06-28-2022 10:40 AM
@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.