LabVIEW Idea Exchange

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

Provided Icon Glyphs Size Problem...

Status: Declined
Issue was fixed with a sync to the glyph library on ni.com

All the provided glyphs in the ...\LabVIEW Data\Glyphs\ folders are 32x32 PNG files.  Even if the actual glyph itself is smaller.  The Icon Editor in LabVIEW 2012 centres on the glyph 32x32 image and therefore whether the actual glyph graphic is smaller than 32x32 you can only put it in the top left quarter of the icon.

 

Try it with LabVIEW Data\Glyphs\Actions\unsupport.png and try to put the glyph in the bottom right hand corner.  You can't!

 

They all need resizing to the actual size of the glyph.

 

I have created and used glyphs 15x15, 20x20 and other sizes and the Icon Editor loads them without issues, and the cursor is central to the glyph.

 

Thanks.

Christopher Povey

Principle Test Systems Engineer for BAE Systems.
23 Comments
RavensFan
Knight of NI

This sounds more like a bug report rather than a new idea.

 

And I don't even think there is a bug.  I tried doing what you said, and I had no problems putting the glyph in the lower right corner.  I just dragged it and there were no problems.

ChristopherPovey
Member

Using the Data\Glyphs\Actions\unsupport.png as an example.  I would expect the "hand" cursor in the centre of the red circle but it's not.  So below is as close as I can get it to the bottom right of the icon, before the hand cursor leaves the icon drawing area:

 

Icon Editor.png

Christopher Povey

Principle Test Systems Engineer for BAE Systems.
RavensFan
Knight of NI

You can't drag the image to the lower right corner once you've dropped it in the editor?

ChristopherPovey
Member

You can drop it, then select it and then cut'n paste it back in, but if all the glyphs were the actual size of the glyphs themselves and not 32x32 you would not need too...

Christopher Povey

Principle Test Systems Engineer for BAE Systems.
RavensFan
Knight of NI

You don't need to cut and paste.  You drop it.  Then grab it and drag it to where you want.  It really isn't that hard to do.

ChristopherPovey
Member

So you can... Smiley Embarassed  When I tried that earlier that did not work.  It would still be nice if the glyphs were centered on the glyph image itself though! 🙂

Christopher Povey

Principle Test Systems Engineer for BAE Systems.
RavensFan
Knight of NI

I understand what you are asking for.  And it makes sense, so I'll add a kudo to the idea.  If it is an easy idea to implement, than it is worthwhile.  But the drop and drag method of moving the glyph to where you need isn't difficult, so I don't think the idea is a major improvement and timesaver.

 

Note that in order to be able to drag something, you have to be grabbing a pixel of the glyph that is not transparent.  If you grab a transparent portion of the glyph, it won't drag.

AristosQueue (NI)
NI Employee (retired)

I've asked our graphic designers to take a look at this idea and evaluate if something needs changing.

gmart
NI Employee (retired)

ChristopherPovey, your suggestion is a little unclear. At first it seemed like what you reported was a bug but then you could not reproduce the issue. Then RavensFan seemed to agree with your suggestion, but it still wasn't clear exactly was is being requested. Would you clarify the idea?

George M
National Instruments
ChristopherPovey
Member

Basically all the glyphs are in a 32x32 pixel PNG file even if the actual glyph is smaller than 32x32 pixels.  When you initially click on a glyph and hover over the icon drawing area the mouse cursor centres on the centre of the PNG file and not the centre of the actual glyph.  This means you cannot position a glyph in the bottom corner of an icon unless you drop it first then move it with the move tool.  This requires two operations.

 

The proposal is to resize each glyph's PNG file so that it matches the size of the glyph image within it, i.e. remove the white space below and to the right of the glyph. Then the mouse cursor would centre on the centre of the actual glyph.

 

I have created glyphs PNG files of sizes smaller than 32x32 pixels and it works.

Christopher Povey

Principle Test Systems Engineer for BAE Systems.