LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

tab control

Hi,
I'd like to know if it is possible to make a control on the first page of a tab control visible on the second page.
I have tried to put tab pages with transparent color but it did'nt work, the control is still invisible.
I want to do this because I want to save time, I want to use the same control on the two pages, and I don't want to multiply them(copy).

Thanks
Olivier
0 Kudos
Message 1 of 9
(4,085 Views)
Hello,

One idea... Why don't you use the control outside the tab conttrol. That's what I usually do.
Software developer
www.mcm-electronics.com





PORTUGAL
Message 2 of 9
(4,076 Views)
Hello Again,

See the attached file for a better Idea.

I can help with another approach. But this way it's the simplest.
Software developer
www.mcm-electronics.com





PORTUGAL
0 Kudos
Message 3 of 9
(4,074 Views)
Hi,
I am not sure I made myself clear , or maybe I did'nt understand well what you said.
What I need is to have only one instance of the control but, visible and enabled on the two tab pages, like if the tab pages were tranparent , that way I can set different node properties to this control on each pages.
For exemple I want to put 2 controls on the front panel and one of them will be set by node property to invisible only on the second page.

Thanks
Olivier
0 Kudos
Message 4 of 9
(4,069 Views)
I do that all the time - the button (or whatever) has to be OUTSIDE the tab control.

If you DRAG it on top of the tab control, it will "fall in" and be contained by the page it landed on.

But if you use the ARROW keys to MOVE it on top of the tab control, it remains floating above it (you might have to play with the front-to-back ordering).

At runtime, it appears to be in the tab, but will stay visible regardless of which tab is chosen.

Steve Bird
Culverson Software - Elegant software that is a pleasure to use.
Culverson.com


LinkedIn

Blog for (mostly LabVIEW) programmers: Tips And Tricks

Message 5 of 9
(4,065 Views)
Hi; costal
that's exactly what I needed.
Thank a lot

0 Kudos
Message 6 of 9
(4,057 Views)
Hi,
I have another problem, now I need to male invisible some text label but they don't have any property node to make themselve invisible,
I have tried it by  changing colour but I need to put two text labels at the same place but one visible on a tab the other one on the other tab.
Does anybody have an idea to turn text label invisible?

Thanks
 Olivier
0 Kudos
Message 7 of 9
(4,013 Views)
I need to put two text labels at the same place but one visible on a tab the other one on the other tab.

When you say "label" do you mean a true label (that is attached to a particular control / indicator), or a free-floating text block?

If you mean free-floating (unattached) text, then I don't know what your difficulty is: just put one in one tab and the other in another tab. If your control that's floating above the tab control is transparent, then you can make it look like the label applies to the control, even though the label is behind the control.

If you mean an attached label, perhaps attached to your "floating" control, then you have several options.

  • Use the CAPTION property instead of the label, and at runtime set the CAPTION to "Tab 1" or "Tab 2", based on a TAB CONTROL.VALUE CHANGED event.
  • Use a menu ring right next to the control you want to label, and set its background to transparent. Set its text values to what you want to show, and at runtime set its value to 0,1,2... based on a TAB CONTROL.VALUE CHANGED event.
  • Use a Boolean button with MULTIPLE STRINGS enabled, and set the ON STRING and OFF STRING to what you want to show. Set the button body to transparent, and at runtime set the value to T or F based on a TAB CONTROL.VALUE CHANGED event.
  • Have a transparent TAB indicator that floats above your real TAB control. Switch tabs in the floater based on which tab is active in the real one.

Steve Bird
Culverson Software - Elegant software that is a pleasure to use.
Culverson.com


LinkedIn

Blog for (mostly LabVIEW) programmers: Tips And Tricks

0 Kudos
Message 8 of 9
(4,002 Views)
Olivier,

There is a property node for Label.Visible for controls on the front panel.

Are you looking for a reference to a free text label? You can get an array of references to all objects on a panel, but I don't know what properties the free text label has.

You could use a string indicator with the borders colored transparent or thesame color as the panel and then use standard control properties. The classic controls are somewhat easier to color the borders than the modern style.


Lynn
0 Kudos
Message 9 of 9
(4,002 Views)