LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I programmatically delete a control?

Is there a way to programmatically delete a control in LabWindows? I do not want to just hide it. Seems odd you can easily add a control using the NewCtrl panel function but can't delete one. This panel need to be built dynamically and changes often. My approach now is to discard the panel, reload and rebuild each time the panel changes but there are some limitations to this (handle to the panel keeps changing to name one). Any help would be appreciated.

Brian
0 Kudos
Message 1 of 2
(3,251 Views)
You can use DiscardCtrl (panel, control).
This command works both with dynamically created controls and with controls created in the UIR editor.
Roberto


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?
Message 2 of 2
(3,251 Views)