> Please can you specify in more detail how I can obtain the ActiveX
> refnum input automatically wired to a constant (I have observed this
> behaviour with the 3D-Graph control as you suggested). I haven't found
> any reference in the LabVIEW on-line help about the topic "merge-VI".
>
The first step is to build a VI that contains the panel and diagram
elements that you want to drop all at once. In your case, drop the
ActiveX control at a good size, and on the diagram, you can wire it to
helper VIs, property nodes, etc. The VI's icon and name are important
as that is what will show up in the palette menu representing your
control. The connector pane isn't used.
With the VI constructed, you want to add it to the palette menu. In the
Tools menu, Advanced, there is an item about half way down for
Customizing the Palette menu. You will need to build a New Palette Set
using the ring and name it whatever you like. You can now add your VI
wherever you like. Most likely you will want to right click to add a
new subMenu in the Controls palette and place it in a new .mnu file. In
the subMenu, right click to add Control. The file dialog will open
allowing you to select a control file to add to the palette. By
changing the filter from .ctl to all, you can insert VIs into the
controls palette.
All VIs inserted into the Control palette will act as merge VIs, meaning
that when dragged to a panel, the panel elements will be merged into the
destination panel, and the diagram elements will be merged into the
destination diagram.
For others that want to have these on the Functions palette rather than
the Controls, you add the VI to the Functions palette, then popup on the
palette item and check the menu item to make it a Merge VI.
When it comes time to distribute, you will want to give out your .mnu
file and the VI of course. Easiest is to place both of them in
user.lib. If you want the items to go at the top level of the palettes,
then you can add them to add-ons inside of vi.lib, but this causes more
upgrade challenges.
Hope that helps.
Greg McKaskle