This repo contains the source files for the LabVIEW icon editor. You can use this code as a starting point for creating a custom icon editor. Refer to the CONTRIBUTING document for information about submitting changes for inclusion with future versions of LabVIEW.
LabVIEW source is saved in 21.0 (LabVIEW 2021) format.
Because the icon editor is part of the LabVIEW development environment, you need to make changes to installed files before editing this project.
Complete the following steps to edit this project:
- Clone this repo into a development location (e.g., C:\dev).
- Run Tooling\Prepare LV to Use Icon Editor Source.vi.
This will perform the following steps, which you can alternatively perform manually:
- Delete <LabVIEW>\resource\plugins\lv_icon.lvlipb
- Delete <LabVIEW>\vi.lib\LabVIEW Icon API
- Set LocalHost.LibraryPaths in your labview.ini file to the location of this project. For example:
- LocalHost.LibraryPaths="C:\dev\labview-icon-editor"
- Open lv_icon_editor.lvproj in LabVIEW.
- The top-level VI is in the Project Explorer at My Computer » resource/plugins » lv_icon.lvlib » lv_icon.vi.
Complete the following steps to distribute your custom icon editor to another machine.
First, build the Editor Packed Library build specification in the project to create lv_icon.lvlibp.
Then, on the machine where you want to install your custom icon editor:
- Rename <LabVIEW>\resource\plugins\lv_icon.lvlibp, the shipping icon editor, to lv_icon.lvlibp.ship to "hide" it.
- Archive <LabVIEW>\vi.lib\LabVIEW Icon API to preserve the shipping copy. Use your archive program of choice (e.g. 7-Zip).
- Copy the packed library and support files that you developed with this project into the <LabVIEW> directory:
- <LabVIEW>\resource\plugins\lv_icon.lvlibp
- <LabVIEW>\vi.lib\LabVIEW Icon API\*