LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

xcontrol in xcontrol

I have some more questions related to another post of mine found HERE.

 

I have been working on an Xcontrol which takes an array of objects as datatype and then offers a UI for interacting with the data wihtin those objects (See other post).

 

I am using a listbox for selecting the objects and a subpanel within the Xcontrol to display the controls for editing.

 

I now wanted to implement the ability to display both indicators and controls in the sub-panel.  I thought using an XControl in the subpanel would help solve my problem but it doesn't.  The setting (Indicator / Control) doesn't propagate through the subpanel..... (which I understand)

 

I'm looking for an ability to introduce an edit-time change in behaviour, not run-time.

 

The only way I can think of is the following:  Pass parameters to a dynamic dispatch VI containing the XControl in question and show either a control version or an indicator version of the XControl based on the datapassed.

 

 As such I'm actually placing a Dynamic Dispatch Vi CONTAINING the XControl into my top-level XControl's subpanel and not the XControl itself.

 

 Any better way of doing this?

 

Shane.

0 Kudos
Message 1 of 1
(2,740 Views)