LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Is it possible to change the names of the pages on a registerelemnt programatically?

Yes, it is.

1. Deactivate the option "Make Page Caption Match Label" (see attachment), so that you're able to set the caption

2. Create a property-node of your tab-control, using the property "pages" (array of references)

3. Using this references you can acces the property "TabCaption"

Hope this helps.

Thomas
Using LV8.0
--------------------------------------------------------------------
Don't be afraid to rate a good answer... 😉
--------------------------------------------------------------------
0 Kudos
Message 2 of 8
(3,677 Views)

@becktho wrote:
Yes, it is.

1. Deactivate the option "Make Page Caption Match Label" (see attachment), so that you're able to set the caption

2. Create a property-node of your tab-control, using the property "pages" (array of references)

3. Using this references you can acces the property "TabCaption"

Hope this helps.

Thomas


Hi Thomas,

I´ve did it your way, but i get an error back, see attachment.

I says, the property could be set only in editing mode.



???
0 Kudos
Message 3 of 8
(3,651 Views)
Now with attachment...
0 Kudos
Message 4 of 8
(3,649 Views)
Could you send it as a LV 7.0 vi?

I still use LV 7.0.

Thomas
Using LV8.0
--------------------------------------------------------------------
Don't be afraid to rate a good answer... 😉
--------------------------------------------------------------------
0 Kudos
Message 5 of 8
(3,646 Views)
Jepp,

here it comes in v7.0
0 Kudos
Message 6 of 8
(3,639 Views)
Ok. In the vi you sent me I saw that you were using the wrong property (PageLabel instead of TabCaption). I also saw that you're using a german version on your screenshot.

So try the attached vi (I just changed the property to TabCaption).

Hope it works now.

Thomas
Using LV8.0
--------------------------------------------------------------------
Don't be afraid to rate a good answer... 😉
--------------------------------------------------------------------
Message 7 of 8
(3,635 Views)
Hi Thomas,

thanks for your help, it works now.

I´m working on a function to select the language of my application. I had the same problem to change the label of a control, it´s only possible to change the sub-title in runtime.

It´s the same with the registerelement...


Thany you!
0 Kudos
Message 8 of 8
(3,632 Views)