LabVIEW Idea Exchange

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

Change placement rule for Icon Text in Icon Editor

Status: Completed

Fixed in LabVIEW 2015 SP1 and later

When placing Icon Text inside a frame in the Icon Editor, there appears to be a rule that the text region is between the lowest two horizontal lines.  I'm trying to design an icon with a two-line-width frame, with a lot of empty space in the middle, but this (deduced) rule stymies my efforts.  I'd like to suggest that the algorithm be changed to place the Icon Text inside the largest blank space available.

 

Here is an illustration of the problem.  All these images are a one-pixel Frame and a single line of text.  In the first image, a single additional line is at the top, while in the second image, a single line is at the bottom.  The final image pretty much precludes designing a Template with a two-pixel bottom border, something I'd very much like to do.

Top Template.pngBottom Template.png

 

Bob "Frustrated" Schor

 

 

10 Comments
RavensFan
Knight of NI

I'm not seeing this behavior (LV15SP1).  At least with either a frame with a 1 pixel wide border as a template and another line drawn near the bottom, or with a box and another line both drawn on a layer within the editor.

Bob_Schor
Knight of NI

I'm using 2015 without the SP1 patch.  What I'm trying to create is a template that has, basically, a 2-pixel-wide frame.  What I illustrated was two templates, one with the two-pixel wide element at the top (which works fine), the other at the bottom (which fails).  Needless to say, having two pixels all around also fails (for me, at least).

fabric
Active Participant

Bob, not sure if this applies to your issue but the placement of text is dependent on whether the layer is named "NI_Library" or not. Try playing with that and see if it helps...

AristosQueue (NI)
NI Employee (retired)

I doubt we can change this behavior since it would cause new text layouts for other icons the next time people open the editor. It would require some careful thought to come up with a solution. I'm not saying it is impossible, just unlikely.

Bob_Schor
Knight of NI

Son-of-a-gun!  They fixed it!  I'd developed a clumsy work-around (making a 1-pixel template, then adding the second inner layer "by hand" when creating the Icon).  I'd been using it for some test code I was developing in 2016 Beta (I didn't need the new Icon for 2015, as the "New VI Structure" that I was playing with was done using a very different mechanism that needed no "Iconic Mnemonic").

 

I just revisited my post, saw the comments, was dismayed at AQ's remark (particularly since my new Icon was inspired by something I saw him do), but realized I hadn't tried it out (yet) in 2015 SP1 (which I recently installed).  It works!  I'm just keeping my fingers crossed that it will continue to work when LabVIEW 2016 is released.

 

Bob Schor

AristosQueue (NI)
NI Employee (retired)

We fixed it? Well, good on whoever figured that fix out. I didn't know about it.

Darren
Proven Zealot
Status changed to: Completed

Fixed in LabVIEW 2015 SP1 and later

Bob_Schor
Knight of NI

Arrrggghhh.  I just tested this "one more time" before going to NIWeek 2016 (and checking out LabVIEW 2016), and we're back to the Old Behavior!  I swear I had seen this working a month ago -- were there any Updates released in the last month that could have affected this?  Really, this is too "slick" an idea (particularly if it really does work) to let slip ...

 

I'll be at NIWeek all week, and will be checking the Forums -- I'd love to show someone what I'm trying to do ...

 

Bob Schor

AristosQueue (NI)
NI Employee (retired)

Find Darren or myself around NIWeek... we can look over your should and see what can be done.

Alexander_Sobolev
Active Participant

I think this needs to be readdressed, it works awfull when any glyph does not have horizontal lines. Makes the text tool hardly usable when icon is glyph + text.

 

I have added 2 Text tool layers where I might want text to be, where I could position them in LabVIEW 2011 (without autoalignment).

 

Alexander_Sobolev_0-1606150985015.png

Autoadjustment positions icon text only here because of the library icon made of glyphs.

Alexander_Sobolev_1-1606151142491.png

 

I think the solution is to position it based on the template structure (even if it is not visible) and make it not affected by glyphs and library icon. Or make the checkmark "ignore other elements during text positioning". 

 

A few more bugs.

It does not update when I shift glyph layers, and that affects text positioning. Text will shift only if I do something with it  (hide+show for example) or reopen icon editor.

It adds the parent class library icon but does not allow to control its visibility or order.

It does not add class library icon when I move VI into class.