10-01-2008 11:28 AM
Is it possible to modify the xControls captions dynamically durning run time? I'm learning how to use xControls and I am having troubles changing the captions outside of the xControl. I want the VI using the xControl to be able to dynamically change the caption of the individual controls and indicators within the xControl. I have tried creating an array of refNum's for my data and tying the refnum controls and indicators of the xControl Facade to this, but it has failed miserable. Is it possible to create a methode that will allow me to modify the caption of individual controls within the xControl during run time?
Solved! Go to Solution.
10-02-2008 10:43 PM - edited 10-02-2008 10:45 PM
Hi Mr. Question,
Thanks for sharing your problem with the community. Have you read through the following article:<http://zone.ni.com/devzone/cda/tut/p/id/3198>?
I will look into this and I will let you know when I have more information.
Regards,
Dan Richards
10-03-2008 02:56 AM
If I were you I create a seperate property for every GUI part that you want to be able to rename.
Ton
10-07-2008 04:03 PM
10-08-2008 06:02 PM
Hi,
I'm glad to hear you solved your problem. xControls can be pretty tricky and it's not something I hear about very often and it was difficult to find much information about them. Feel free to share more information about your solution. Either way, thanks for sharing your issue and take care.
Regards,
Dan Richards
02-08-2016 09:47 AM
Hi all,
I revive this old post because I have a question related to it:
- I have a XControl and I want to update its caption depending on the data that needs to be displayed.
- I tried to do that by getting the Refnum from the "Container State" cluster and using a property node to change the text of the caption (Caption.Text). I do this in the "Data Change" event case since which caption I need to display is encoded in the data itself. The flag "Data Changed" is set to true in the Action cluster.
Running the VI, I see that the property node is executed with no error, but the caption never changes.
I read the white paper on XControls, but I'd like not to use a prpoerty node if possible.
Thanks in advance for your help !