LabVIEW Idea Exchange

cancel
Showing results for 
Search instead for 
Did you mean: 
chris.b

View Cluster Constant as Icon

Status: Completed
Available in NI LabVIEW 2010

Clusters are powerful and necessary, but they can easily clutter up otherwise immaculate code.  Why not have a "View As Icon" option (a la Express VIs) for cluster constants?

 

3.png

 

Right-click menu change...

 

2.png

 

 

There have been similar suggestions, but I think we need a clean, simple solution.

Chris Bolin
LabVIEW Partner Program, CLA
47 Comments
AristosQueue (NI)
NI Employee (retired)

> Except I would prefer that the icon not look too much like a VI.

 

How about this? We take the icon and put a double border around it like a constant:

IconConstant.png

AristosQueue (NI)
NI Employee (retired)
On second thought, that looks too much like an FPTerminal. Nevermind.
chris.b
NI Employee (retired)

> We take the icon and put a double border around it like a constant

 

I like it

Chris Bolin
LabVIEW Partner Program, CLA
chris.b
NI Employee (retired)
Or a local variable? lol
Chris Bolin
LabVIEW Partner Program, CLA
GregSands
Active Participant

A couple more options:

- fade the icon into the BD (similar to a "greyed" control) which gives the implication of being a constant (i.e. unchangable)

- or make the default typedef/control icon to be a half-height icon (or half-width as well - a small square) which again differentiates it from the typical VI icon - given it has only a single terminal, then there's no need to be 32x32px

 

AristosQueue (NI)
NI Employee (retired)

> - fade the icon into the BD

 

Too much like the "commented out" effect that we use for Code Disable node, etc.

 

> - or make the default typedef/control icon to be a half-height icon

 

Whatever the size of the icon, that would be the same icon size as the FPTerminals, so we would still need to tweak the appearance somehow to avoid similarity.

blawson
Active Participant

>Broken Arrow: Except I would prefer that the icon not look too much like a VI.

 

 You can edit the icon already, just make a template for type defs.  you can even make it a small icon!

 

I've always looked at the icon and thought, "I'll have to start editing those when they implement TD icons on the BD."

-Barrett
CLD
muks
Proven Zealot
Grt idea. Bring it on.........
Gleichman
Member
I'd prefer the "show as an icon" type def version of this idea. That way when you want to see what the cluster is you don't blow up your code.
JackDunaway
Trusted Enthusiast

It just occured to me: the idea was originally presented as any CLUSTER, not specifically a TYPEDEF'd CLUSTER. Should the ability to "Show as Icon" only be limited to a Typedef (and not just a regular BD cluster constant)?

 

The original idea shows just a generic "cluster constant icon", but the several of us have voted for using the typedef's icon. A cluster constant obviously would not have a user-created icon like a typedef, so I'm thinking this idea should be limited to only constants that are linked to typedefs. Comments? Suggestions? Insults?