LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

get rid of caption shadow in tab control

Solved!
Go to solution

Hello,

I'm using LV7.0 on W2K and have run into a difficulty.  Often times, when I need some front panel text to be changed programmatically, I will put a control or indicator off to the side (out of sight), and use its caption as the label.  This prevents me from having to figure out how to get a reference to a real label... that's always been a pain.  I just use a property node to change the caption text.  My problem is, for the app I'm currently working on, I need to use a tab control.  If I put the label (caption ) in the tab control, it hovers over, displaying a shadow under it.  This does not happen if the control is also in the tab control, only when the control is not in the tab control.  Is there a way to make this behaviour stop?

Thanks.

Rick

 

 

0 Kudos
Message 1 of 10
(4,015 Views)
Solution
Accepted by topic author rickford66
It is going to do that. THat was the way it was made to show you that it is not inside the tab control. You should notice however that when you start your program that the shadow will go away. The shadow is there when you are programming.
Tim
GHSP
Message 2 of 10
(4,012 Views)
Ah yes, it does dissappear.  Thanks.  I didn't notice that.
0 Kudos
Message 3 of 10
(4,001 Views)
Oops, I spoke too soon about it being solved.  When I run it, the shadow does dissappear, however, the text does not switch with the tab.  I assume this is because the text is not really in the tab, as I can place controls in each tab and they switch with it as they should.  My question is, is there an easy way to put a label in there that will switch with the tab?  I don't need any controls or indicators in there... just text.  Thanks.
0 Kudos
Message 4 of 10
(3,997 Views)
You will have to look for the tab change event signaling to pick up the change for the tab or you will have to handle the caption naming a different way. I got it to work in this example that I put together. If I click the boolean I can see the caption change no matter what tab I am on. See the attached simple example.
Tim
GHSP
0 Kudos
Message 5 of 10
(3,968 Views)
I will keep that in mind if I can't find an easier solution.  It seems like there should be a simple solution to this.  I'll never understand why the folks at NI never thought to include a plain old text label on the controls palette.
0 Kudos
Message 6 of 10
(3,958 Views)
Oops, almost forgot.  Thanks for the help.  :O)
0 Kudos
Message 7 of 10
(3,957 Views)

You can place a string on each page and send the text to every string.

 

You could put the string outside of the tab control and change the text when you change the tab.

Tim
GHSP
0 Kudos
Message 8 of 10
(3,952 Views)
Use the string from the classic pallete.  You can make all the border stuff transparent like you want, then you can just write to the indicator directly.
--
Tim Elsey
Certified LabVIEW Architect
Message 9 of 10
(3,942 Views)

Got it.  Thanks alot.  That's exactly what I was looking for.

 

0 Kudos
Message 10 of 10
(3,926 Views)