LabVIEW Idea Exchange

cancel
Showing results for 
Search instead for 
Did you mean: 
Yamaeda

Dynamic/smart Index/scrollbar on array constants

Status: New

I like to hide the Index on array constants if all elements are shown and show index if the array is larger than shown (and scrollbar if much larger). Wouldn't it be neat if this was automatic?


All elements shown; hide Index

Yamaeda_0-1720018030064.png

 

More elements in array than shown; show index

Yamaeda_1-1720018092693.png

 

Several more elements in array; show index + scrollbar

Yamaeda_2-1720018272585.png

 

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
2 Comments
fefepeto_kb
Member

As most of the ideas around changing the array looks on the block diagram I see some major drawbacks.

If this gets implemented adding elements will be a longer process, or lead to issues with the placement of the node.

There are a few best practices, documented in some style guides floating around LabVIEW communities and they tend to have to following rules defined for readability:

  • If all elements are shown, then display the first empty element too. No scroll bar.
  • If some elements are hidden, then show index, scroll bar and leave the array display at the first empty element shown.

I think, that the BD is for editing, and it shall have function over esthetics. Code shall be readable for sure, but automating/altering something like this damages the editing function.

Yamaeda
Proven Zealot

@fefepeto_kb that's basically what i want to be automatic in this suggestion. 🙂

 

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer