LabVIEW Idea Exchange

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

Size to Text Needs to Support Multiple Lines

Status: New

I think the Size to Text right click menu needs some more functionality. I am constantly manually resizing text boxes and free labels to make them fit on my diagram or ensure they stay close to code they refer to.

 

I propose a change to the right click menu that would let you select the number of lines you want a text box to appear as:

 

Multi-Line Text.jpg

This is similar JB's Idea to Size Vertically to Text but would be quicker than having to resize in one direction and then select to Size Vertically.

 

If this were added to Altenbach's idea of a Text Toolbar  Or Guruthilak's Floating Text Formatting Tool I would be extremely happy. Everything in one.

 

     Rob

6 Comments
AristosQueue (NI)
NI Employee (retired)

I think a more general purpose option would be "Size Vertically to Text", which would keep the horizontal bounds. That avoids the problem of having N different entries for however many lines we want. Thoughts?

RobCole
Active Participant

I looked at that. You still have to size horizontally first that way. I thought having a choice of lines would pick minimum width and height at the same time. Save some time while coding.

 

And I really do like the idea of having this on a text formatting bar.

 

 

AristosQueue (NI)
NI Employee (retired)

Ok.

JB
Trusted Enthusiast
Trusted Enthusiast

I like to set the width manually because it allows me to adjust it to fit the available space on the diagram but also to get a nice looking arrangement of the words. Several iterations may be necessary to get the same by selecting the number of lines.

SteenSchmidt
Trusted Enthusiast

I agree that selecting the number of lines from a fly-out wouldn't be feasible - how many selections to make available?

 

Instead I suggest that when dragging the vertical size the free label box should simply jump n pixels at a time according to the current line height. The height of the box in pixels would then have to auto adjust if you change the font within it, so the box itself would have to remember its current "number of lines" setting. For icing this setting could be user selectable on the box, with it being enabled by default - that way it would still be possible to disable this feature if you want to adjust the height pixel by pixel yourself.

 

Cheers,

Steen

CLA, CTA, CLED & LabVIEW Champion
RobCole
Active Participant

You are suggesting that as you drag the height, the width would auto-adjust? That would be quite reasonable. As long as the algorithm for it would adjust to make it the smallest width possible for the number of lines. I could easily work with that.

 

Rob