LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Programmatically access custom control made through uir

Solved!
Go to solution

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!

0 Kudos
Message 1 of 3
(1,035 Views)
Solution
Accepted by topic author guybrush_threepwood

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."



Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 2 of 3
(1,026 Views)

I ended up using the UI to Code converter since the control was not that complex. Thanks!

0 Kudos
Message 3 of 3
(959 Views)