01-20-2022 09:22 AM
Hi! I made a custom control through the uir (right-click->Custom Controls->Edit...) from an existing control. How do I access this new type of control programmatically? Specifically, I want to make new ones using NewCtrl(...), but I don't know what its "Control Style" is defined as.
Thanks!
Solved! Go to Solution.
01-20-2022 10:00 AM
Basically CVI custom controls are built upon existing controls with or wirhout a librar that handles them. I mean: the "Quit button" custom control is just a standard command button with predefined labels and callback but with no associated code. This control adds very little value to the application and can be recreated from scratch or you can use the UI to Code Converter utility to make the job for you.
In case a more complex customization is present, there is normally a Instrument Driver (.fp and associated .lib or so) that should offer functiions to programmatically create and operate on the control. Just as an example, the File Browser custom control is built on top of a graph control; the associated library offers a FileBrowser_Create () function whose help recitates "Creates a new file browser from an existing tree control."
01-26-2022 01:46 AM
I ended up using the UI to Code converter since the control was not that complex. Thanks!