Quantcast
Channel: LabVIEW topics
Viewing all articles
Browse latest Browse all 69272

xcontrol init

$
0
0

I've written a small XControl for a boolean counter (remains active for a user-chosen number of iterations then changes to false).  Simple functionality really.

 

I have code in place to allow the user to modify the label being shown and thus re-size the container for the XControl.  This all works fine and I'm happy with the control.

 

My only problem occurs during initialisation where I need to re-arrange the FP of the Facade VI due to the variable length of the label.  This results in some visible changes in appearance of the control which is not optimal.  I'd like to be able to perform the same re-arranging within the Init VI instead of the facade VI itself.  While I can resize the container properly (Using the Refnum in the "Container State" cluster) I cannot cahnge the properties of any of the controls on the facade.  Is there any way to get references to the controls ont he FP of the facade VI during initialisation?

 

Either that or should I just include the control resizing code in the "Exec State Changed" case of the event structure?

 

Shane


Viewing all articles
Browse latest Browse all 69272

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>