LabVIEW Idea Exchange

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

Collapse Lengthy String Constants to an Icon (like LV 2010 Clusters)

Status: Completed
Available in LabVIEW 2012

Large string constants, like to one shown below, can really get in the way. I would like to double-click the border and have it collapse, like the LV 2010 Cluster now does. Putting large string constants in a VI, or rolling them up, are some work-arounds, but this would be easier...

 

Collapse Text.jpg

 

                                 Double-Click the "text" icon to reverse.

Richard






23 Comments
X.
Trusted Enthusiast
Trusted Enthusiast

As mentioned, the Edit window part (of the comments) is implemented (and quite useful).

 

The way I understand some of the comments above, people are reluctant to do the resizing (shrinking the string manually and using "Size to text" back and forth after reading/editing) WITHIN the diagram BECAUSE they have autogrow ON by default. In these conditions, "Sizing to text" results in a diagram explosion.

I always feel for those who use autogrow, but I have a simple fix for them: don't!

If you don't then you can shrink a constant to this size:

 

ScreenHunter_001.jpg

 

(notice the ludicrously useless scrollbar, which, if right-click>>hidden will result in instant re-expansion of the string to full size...with the same width as the "icon"! But that is another discussion altogether).

Right-cliking this quasi-string constant icon will get you to the Edit window.

Or you can put you string constant within a cluster, for which you can use "View Cluster as Icon" option. But that really doesn't you do any good, as double-clicking it simply re-expands the cluster...

 

It probably would have been nicer if NI had justified their choice to work on an Edit window only, without bothering to introduce two intermediate string constant states: (1) expanded to the extent chosen by the user, (2) iconified.

(and as Darin. K. noted a while back, realized that, stricto sensu, they in fact implemented another idea than the original one).

 

I guess what is a bit confounding is that the "Edit..." window has a "Size to Text" check box! It probably wouldn't be much work to have an extra check box for "Minimum Size" (the quasi-icon state depicted above), but then, how much extra work would it be to draw a full-fledge icon then?

 

Now, you probably will be thinking that I am a naysayer, but has anybody noticed that there is -like for all string objects in LV- a buggy Cut (non-repeatable Ctrl-X), a buggy Copy (Ctrl-C cannot follow a Ctrl-V or a Ctrl-X) and no Undo in the Edit Window?

X.
Trusted Enthusiast
Trusted Enthusiast

I posted the bug I am mentioning in the previous post here.

G-Money
NI Employee (retired)

In LabVIEW 2012, you can right-click on a string constant and choose Edit to open a standalone text editor. This allows you to have the string constant very small and not have to resize it larger to change the text. Unfortunately the double left-click functionality to open the editor wasn't achieved as double left-clicking on a string constant makes it editable.