Jump to content

Read in a subVI's icon?


Recommended Posts

Does anyone know of an easy method to get some sort of reference to a VI's icon? I'm not talking about the generic "I'm-a-VI" one you see from your OS, but the actual icon you create when you make your VIs. I know that I can get it from the VI's binary, but I'd much prefer loading it from a VI reference and displaying it in a picture control or the like, but I can't find an appropriate property...

PS: actually, it'd be kind of cool if someone wrote some code that gets the subVI's icon from its' binary for the Code Repository...

Link to comment
Does anyone know of an easy method to get some sort of reference to a VI's icon? I'm not talking about the generic "I'm-a-VI" one you see from your OS, but the actual icon you create when you make your VIs. I know that I can get it from the VI's binary, but I'd much prefer loading it from a VI reference and displaying it in a picture control or the like, but I can't find an appropriate property...

PS: actually, it'd be kind of cool if someone wrote some code that gets the subVI's icon from its' binary for the Code Repository...

Moore Good Ideas has a VI that reads the icon from the VI's binary in their MGI Freeware VIs.

Also, In LabVIEW 8.2 (and maybe earlier) you can use the VI Icon methods of the VI class (see below).

post-17-1166589306.png?width=400

Cheers,

Link to comment
Does anyone know of an easy method to get some sort of reference to a VI's icon? I'm not talking about the generic "I'm-a-VI" one you see from your OS, but the actual icon you create when you make your VIs. I know that I can get it from the VI's binary, but I'd much prefer loading it from a VI reference and displaying it in a picture control or the like, but I can't find an appropriate property...

PS: actually, it'd be kind of cool if someone wrote some code that gets the subVI's icon from its' binary for the Code Repository...

Your kidding right? :unsure:

My Icon editor gets the Icon form a vi via the reference.

And if I recall you were the one whom approved it for the CR. :P

Link to comment
Does anyone know of an easy method to get some sort of reference to a VI's icon? I'm not talking about the generic "I'm-a-VI" one you see from your OS, but the actual icon you create when you make your VIs. I know that I can get it from the VI's binary, but I'd much prefer loading it from a VI reference and displaying it in a picture control or the like, but I can't find an appropriate property...

PS: actually, it'd be kind of cool if someone wrote some code that gets the subVI's icon from its' binary for the Code Repository...

In my ICON Editor is this function also used (the Vi is already in the Code Repository)

Vi, Vit, Ctl Icon and Description Editor

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.