Jump to content

Put a Decoration on a Controls Palette


Recommended Posts

I need to create a custom "Decorations" palette. You can't drop a control file with only decorations on it, though. And you can't put a "merge VI" on a controls palette. Any ideas how this might be accomplished?

Link to comment

Well that is interesting.  I've never had a need to make a decoration to be used in other places and be available on the palette, but I'm surprised there doesn't exist some way of doing this.  

 

I guess the easiest way to do this is to make a control that is transparent, other than the decoration then save it.  So make a boolean transparent, then do something like replace the decal image (or false or true) with your decoration.  The obvious side effect is the fact that you will have a whole bunch of booleans on your block diagram that don't go any where because they are just for looks.  You could do similar stuff with the 2D picture control but I'm guessing it won't scale the way you like when stretched.

Link to comment

Simon Hogg at NI figured it out: Put the decoration on a .vi and add that file to the control palette. You'll have to change the file browse dialog's filter from (.ctl, .xctl) to "all files" so you can select the .vi. It gets added to the palette and drops its decoration onto a new front panel just fine. We could think of it as a "merge VI" for front panel contents!

Link to comment

Makes sense when you say it that way, but there's nothing in the product that has led anyone (here) to believe it's possible. Looks like a golden opportunity for expanding documentation or making it more obvious that any VI's front panel can be added to a controls palette.

Link to comment

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

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