LabVIEW Idea Exchange

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

Menu separator in case pulldown

Status: New

I would like to be able to organize large case structures to speed up code reading.  I find that when case structures from (10+ cases) it takes a long time find the case I am looking for.  Adding menu separators (i.e. no associated case only cosmetic) would allow the programmer to organize long case structures into groups.  I would expect this to be added and removed using the case reorder GUI.

 

This is only to improve readability of case structures and has no other purpose.

Paul Falkenstein
Coleman Technologies Inc.
CLA, CPI, AIA-Vision
Labview 4.0- 2013, RT, Vision, FPGA
7 Comments
egraham
Member

Do you currently use empty cases to act as your category separator? I guess the downside to the current method is that when we scroll through cases we actually have to scroll through an empty case that exists as our separator. Of course adding that separator case can't be done through the reorder window. At least we do have a way to group cases, it's just that we have to create a new case to do it.

 

case-divider.png

altenbach
Knight of NI

(I thought there was already a similar idea, but I cannot find it. Maybe it was elsewhere...)

 

Do the separators really need to be labeled or would it be sufficient to have horizontal lines, similar to some of the longer menus of the menu bar?

 

The same should equally apply to event structures, of course.

X.
Trusted Enthusiast
Trusted Enthusiast

It's been discussed several times within other threads (but not as a specific thread AFAIK) so it is definitely worth its own suggestion. You could add event structures in the list.

Personally, I would push this even further:

1) I want disclosure triangles associated with each "separator" item so that I can hide/show a chunk of cases within the whole list (a la jcarmody's RCF plugin as discussed in this somewhat related thread)

2) in cases where you have hundreds of cases names in a case (as I was illustrating in the VI attached in the thread mentioned above), or at least enough to extend past the maximum width of the drop-down list (something like 1280 points according to my screenshot below), offer some way to customize the case list format. In particular, break it down into several lines, tabulate, etc.

Note for instance that jcarmody's plugin does not handle these very long case descriptions very well either...

 

Case in point:

 

dropdown case list.JPG

falkpl
Trusted Enthusiast

I was supprised to not find it already.  I have used empty cases before as seperators but seems like workaround rather than a solution.  I was thinking the same as a seperator in the menu screen.  I can see the request for named seperators but a single line would be fine.

 

I was going through an old app with almost 50 cases  and found it hard to locate the few cases that I was searching for, the all were logically grouped but this was not readable shown in the code.

Paul Falkenstein
Coleman Technologies Inc.
CLA, CPI, AIA-Vision
Labview 4.0- 2013, RT, Vision, FPGA
X.
Trusted Enthusiast
Trusted Enthusiast

This thread addresses a similar problem for Event Structures, but if you read down, you'll find, expectedly, suggestions to offer the same for case structures.

ThijsBoeree
Active Participant

I also have this problem, i have 50+ cases in my structure. It would be very nice to see them in a tree form.

 

Best regards,

Thijs

Intaris
Proven Zealot

I would also like to be able to have multiple menu entries pointing to the same case.