Easy way to copy the VI icon to application icon?

Easy way to copy the VI icon to application icon?

Post by bob_mille » Sat, 26 Feb 2005 09:41:24


This is a fairly minor, but annoying problem...<br><br>I am using LabVIEW 71 with the DSC module to deploy a standalone application. The build utility has a radio button to select a default LabVIEW icon for the application or to import a custom one. Some discussion exists out in the developers forum on how to use third-party tools to create custom icons in appropriate file formats to import.<br><br>But LabVIEW already has a built-in VI icon editor which though fairly crude, is usable, and I and probably a half million other users have already used it to create icons for our VIs and subVIs. <br><br>Is there a simple way (preferably not involving 3rd-party software other than Microsoft built-ins) to import this icon for use in the application? I am actually rather amazed that this is not a third option (besides "Default" and "Custom", e.g. "Use VI Icon") in the application builder!<br><br>I have the "Developers' Suite PCE", so I have (but have not attempted to install) LabWINDOWS/CVI, which is hinted to have an icon editor in it. But I really don't want to go around my elbow to use (or worse, rebuild) an otherwise perfectly good 32x32 256 color icon I have already tediously created<br><br>Bob Miller
 
 
 

Easy way to copy the VI icon to application icon?

Post by bob_mille » Sun, 27 Feb 2005 01:10:52

Thanks. A few hours after I posted I figured out how to programatically <br>extract a VI icon and save it to a file (using vi methods in a scratch-<br>built "SaveIcon.vi"). This gets me part-way there (in the wrong file<br>format to load directly into the application builder).<br><br>I also now realize that I need the 16x16 "small" icon as well, so<br>there's editing to do in some other tool, anyway. And VI icons, while<br>serviceable, really want to be nice and square (no masking) to cover the<br>connection ports appropriately in a block diagram, while most modern <br>Windows desktop icons are more "pretty", including the default LabVIEW <br>application icon. So if I'm going to do a professional job here, I have<br>to do some work ;-)<br><br>However, being able to select the VI icon as as the 32x32 icon in the app<br>builder (with the standard 16x16 LabVIEW icon as the small one) would be<br>a nice quick-and-dirty feature, especially when several different LabVIEW<br>applications will be placed on the same desktop. Having all the icons look<br>the same kind of defeats the purpose of icons...<br><br>Thanks,<br><br>Bob