LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Creating controls and indicators programmatically

How can I create controls and indicators on a front panel programmatically?  I want to create an executable where the user can create controls or indicators and then position them (drag) on the front panel.

 

Thanks!

0 Kudos
Message 1 of 4
(3,280 Views)

Sorry, no, this cannot be done programmatically in LabVIEW.

 

To achieve something that mimics this, you will need to have all the controls and indicators you think your user might want pre-created, but set to invisible. Then, if a user decides to add a new control, you can simply invert the visibility property of one of these invisible controls to visible. The effect is similar.

 

Dragging the controls around will need to be handled by a series of event cases monitoring the mouse down/move/up events on each of the visible controls and indicators.

Thoric (CLA, CLED, CTD and LabVIEW Champion)


0 Kudos
Message 2 of 4
(3,278 Views)

OK, I'll try that.  Thanks for your help.

Jim

0 Kudos
Message 3 of 4
(3,264 Views)
Did you try a search? See e.g. Creating Controls "on the fly".
Message 4 of 4
(3,263 Views)