Jump to content

Palette Icon for an XNode


Tomi Maila

Recommended Posts

Hi,

I've developed some XNodes that I now want to add to functions palette. The problem is that I don't know how to define the palette icon for an XNode. If I add MyXNode.xnode to functions palette, then for some reason LabVIEW shows the icon of MyXNode.xnode:Help.vi and not the library icon. Has anybody succesfully defined the palette icon of the XNode?

Tomi

Link to comment

I had the same problem.

By error and trial I figure out that you have to change the icon of the help ability and the palette will display it. Just to be safe I typically put the icon I want in both the XNode and in the Help ability. If you don't have a help ability I think you can use the initialize ability icon.

PJM

Link to comment

QUOTE(PJM_labview @ Nov 7 2007, 07:20 PM)

By error and trial I figure out that you have to change the icon of the help ability and the palette will display it. Just to be safe I typically put the icon I want in both the XNode and in the Help ability. If you don't have a help ability I think you can use the initialize ability icon.

Thanks :) I'll use the Help ability then to specify the palette icon. I just got ready my first actually useful set of XNodes that are not only playing around but actually meant for powerful programming tools :)

Tomi

Link to comment

QUOTE(Tomi Maila @ Nov 7 2007, 05:47 PM)

Has anybody succesfully defined the palette icon of the XNode?

Yes, it's easy. Things go more or less like this:

  1. If your XNode has a description, the palette will show the XNode library icon.
  2. If the XNode doesn't have a description, then the palette will show the Help VI icon.
  3. If the XNode doesn't have a description nor the Help Ability, then the palette will show the Initialize VI icon.
  4. If the XNode has no description, no Help and no Initialize, the palette won't accept it.

So, use a description :yes:

Saludos,

Aitor

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.