01-12-2011 03:18 AM
Hi all
I would love to edit the VI icon via VI scripting
Just to write the VI name into the Icon
Is that possibility
Jürgen
01-12-2011 03:33 AM
Hello,
Yes, it is possible.
I suggest you take a look at Mark Balla's Icon Editor on the LAVA code repository, it is really great and it will show you how you can write text on a VI's icon programmatically.
Here's the method that can set the icon :
Now on : how to generate the image data cluster from the text you want to put on the icon, I let you take a look into the code.
Hope this helps
We have two ears and one mouth so that we can listen twice as much as we speak.
Epictetus
10-27-2020 03:22 PM
Hi
I found this example...
https://www.hampel-soft.com/blog/vi-scripting-add-glyph-to-vi-icon/
Their git hub page:
It uses VIs from C:\Program Files (x86)\National Instruments\LabVIEW 2019\vi.lib\LabVIEW Icon API\
It can manage the layers of the VI icon. You can also extract the icon image layers.
Nick
10-21-2021 06:21 AM
This implementation make use of VIs available in <vi.lib>\LabVIEW Icon API
07-24-2024 11:10 PM
His editor is a good thing, it works very well, but it can conflict with LabVIEW object oriented development tools, LabVIEW object oriented property accessor generator tool uses LabVIEW built-in icon editor api, when I use its editor to replace LabVIEW built-in icon editor tool, LabVIEW property accessor tool wouldn't work properly.
07-25-2024 03:03 AM
@juergen wrote:Just to write the VI name into the Icon
Quick drop CTRL+K does this.