05-23-2017 02:37 PM
I stumbled upon creating custom controls, and they seem perfect for putting together a library of commonly used, but not CVI standard controls for use by my team and I. I have been able to create a custom control, but I had to make a .uir containing the control, and manually add it to the list of custom controls from the .uir. I'm wondering if there is a way to share custom controls between multiple machines, without having to manually add the control from the .uir, and include the path to the source, header and template.
I want to essentially be able to build my own library of controls, much like the controls that already exist in toolslib\custctrl, and be able to have other people use those controls easily.
Thanks,
06-08-2017 11:44 AM
It will take a few manual steps first, but you can share your custom controls. The custom controls that you've created for yourself are now saved alongside the ones that are predefined in CVI, so you'll need to remove them from that list and put them in a separate file.
You'd need to do the following:
After you restart CVI, it should pick up your custom controls, even though you've removed them from the original customCtrls.tui. Assuming that works, you can then ask your colleagues to put that same file in their respective folders, and it should do the same.
Unfortunately, whenever someone needs to make a change to a custom control, they'd have to repeat the steps above.
A simpler alternative would be to simply share the original customCtrls.tui file with your custom controls already in it, but that would have to be repeated each time someone reinstalls CVI or makes a change to a custom control.
Luis