11-21-2017 12:54 AM - edited 11-21-2017 01:06 AM
Hi all,
I want to put Language function in my program by changing the captions programmatically, but it becomes annoying when there are many items to control (as attached picture). I have to create lots of property nodes one by one for all the items which I want to change the captions . Is there any easier way to do this?
Thanks for any help.
Ian
Solved! Go to Solution.
11-21-2017 01:35 AM
11-21-2017 03:30 AM - edited 11-21-2017 03:30 AM
@GerdW wrote:
Is there any easier way to do this?
Yes, sure!
Use a property of the pane(l) to get references of all controls in this pane(l)…
And also get the references from all pages in each tabcontrol, and each control in each cluster. That's where recursion comes in handy (you can have clusters in clusters in pages etc.).
11-21-2017 09:00 AM - edited 11-21-2017 09:01 AM
MGI has a VI called "Get VI Control Ref[]". It returns an array of control refs, including controls found within a tab control. If it sees a cluster, it returns the cluster ref but not the controls inside the cluster. You should be able to use this VI as a starting point and add some functionality for clusters, if necessary.
Edit - Don't modify the MGI version, but that should go without saying.
11-21-2017 06:43 PM
GerdW 已寫:
Hi hsyuan,
Is there any easier way to do this?
Yes, sure!
Use a property of the pane(l) to get references of all controls in this pane(l)…
Hi GredW,
Sorry I am a new hand in LV and can't figure out how to do this. Is there any detailed document or link that I can read for reference? It'll be great if sample code is available. Thanks for your reply!
Ian
11-21-2017 07:01 PM