LabVIEW Idea Exchange

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

Allow Different Border Colors for Different Cases

Status: New

I love you the Error/No Error Case is colored Red/Green accordingly.  I think it would be great if you could have a similar feature for other custom case structures.  This will make it very easy to determine which case you are looking at at any given time.  Granted, for case structures with many cases this will not be too helpful, but would be ideal for those with only a few cases.

 

case color.png

7 Comments
Mark_Yedinak
Trusted Enthusiast

I'm not to keen on the idea. I think it has the potential to cause confusion. The current method with the error colors helps to immediately distinguish that the case structure is either checking for an error or simply a general case structure. In addition, as you mentioned it would only be useful for cases with a few cases. You would quickly run out of colors. Not to mention the red (error) green (no error) conveys meaning. The other colors would be meaningless to everyone other than the person ho assigned them. Lastly and probably the biggest reason I would be against this is that if someone does use red or green for something other than errors it would certainly lead to confusion.



Mark Yedinak
Certified LabVIEW Architect
LabVIEW Champion

"Does anyone know where the love of God goes when the waves turn the minutes to hours?"
Wreck of the Edmund Fitzgerald - Gordon Lightfoot
Darren
Proven Zealot

I think I would use this on large case structures. I could color-code the cases in a meaning that makes sense to me, and if I happen to be scrolled to a position where I can't see the case selector at the top-middle of the frame, I'll still know which frame I'm looking at based on the case frame color.  I foresee using case frame colors that match LabVIEW Class wire colors as well.

A-T-R
Member

@ Darren: Or you could visually "group" cases...although it would be just a sort of "hint"

Manzolli
Active Participant

I'm not sure about that... Some people can use to improve code readability, but others may trust in those colors and be mislead. The error's colors are connected to the result, no problem here.

André Manzolli

Mechanical Engineer
Certified LabVIEW Developer - CLD
LabVIEW Champion
Curitiba - PR - Brazil
David_L
Active Participant

I see how it could lead to confusion, but this is already potentially a problem since you can color the case structure (albeit one color for al cases).  I think the benefit of helping organize some code outweighs the detriment of possibly confusing others. 

SnowMule
Active Participant

You can already fill in the background of a case structure for each case, as well as the common outline color... I don't really see a need for individual colors on a case struct.  In fact, I think it'd just be more confusing since a "green" structure may be red if it's in a different case.

 

Drop a few more comments in the code, color-code the comments or structure backgrounds and call it good.

AristosQueue (NI)
NI Employee (retired)

I'm with SnowMule on this one. If you can propose a way to have the color keep up-to-date with the values in the case selector, I'm more ok with it, but otherwise, it just seems to me like something to go stale as code gets edited and whose meaning is ambiguous anyway.