11-06-2008 08:17 PM - edited 11-06-2008 08:20 PM
I want to mimic a standard windows tab look (attached).
I use freetext as a header on a System Recessed frame which is on a System Tab to logically group controls.
However, depending on the height of the freetext, the background color of the freetext does not match the System Tab (attached).
And no other system color seems to either?
Is there an easy work around for this?
[cross post]
http://forums.lavag.org/Freetext-On-System-Tab-Background-Color-t12346.html
Solved! Go to Solution.
11-06-2008 08:52 PM - edited 11-06-2008 08:57 PM
Hi jg code,
I'm not sure I understand your question - it seems to be how to set the FG and BG color of text(?)
To adjust text color, select the text of interest, pull-down the "text-settings" selector (on tool-bar) and choose color.
To adjust the BG of text, select the paint-brush.and right-click on the text you want to change. Use the space-bar to toggle between the edge or the "field" of the BG. ("Field" is my word.)
(embedded jpg doesn't seem to be working?)
Sorry if I misunderstand!.
Cheers.
11-06-2008 09:20 PM
Hi tbd
Thanks for the reply
Sorry, I hope that is clearer?
My questions is:
Why is there a difference between the background color of the system tab at different heights?
How to I account for this?
Evident from the fact the same background freetext color appears different to the system tab at different heights.
11-07-2008 12:06 AM
Sorry jg -
I don't know what a "System Tab" or a "System Recessed Frame" is and don't see them on Decorations pallet in 8.5.1. This is also the first time I've heard the term "freetext" in the context of LabVIEW (I assumed you meant front-panel text created with the text-tool
Re: "Evident from the fact the same background freetext color appears different to the system tab at different heights."
In your JPG I don't see any difference in text colors on the LabVIEW tab - Foreground or Background - only differences in FG color on the JPG of the Windows dialog.
Your question seems to imply that some text-property might automatically change with the "scope" or nested-ness of a decoration object - this is a new concept for me! I don't know of any LabVIEW decorations that behave this way!
If this is really a LabVIEW question, I expect to learn something new if/when somebody else can provide an answer!
Cheers..
11-07-2008 12:39 AM
I suggest you look at your palette a little closer - I too use LV8.5.1
The "system tab" is located on the system palette (2nd bottom left)
The "system recessed frame" is on the system palette (bottom left)
Free text is text not assigned to a control, aka a "label" on the decorations palette (bottom left)
"Your question seems to imply that some text-property might automatically change with the "scope" or nested-ness of a decoration object"
No, what I am saying is the the system tab appears to change its color gradient in the vertical direction.
The two labels circled have the same FG/BG color but they appear in different contrast to the system tab.
One blends in, the other looks white.
The labels next to these - I have tried other system colors to match the label FG/BG color to the system tab at that height but I cannot.
I want it to look like the windows's example.
Stop smoking crack
11-07-2008 01:21 AM
Switching between two projects/LV versions, had been looking for System palette in LV7.1...
The difference in BG color was so subtle, I didn't see it!
Thanks for you patience - sincere apologies for taking this post off the "Unanswered" list.
11-07-2008 02:24 AM
04-22-2011 12:57 AM
Hi jgcode,
What do you mean by the solution is at the cross post? I have a similar problem, see link below.
http://forums.ni.com/t5/LabVIEW/tab-control-background-color-matching/m-p/1533096
Can the solution help me? Thanks!
04-22-2011 07:15 AM
@jyang72211 wrote:
Hi jgcode,
What do you mean by the solution is at the cross post? I have a similar problem, see link below.
http://forums.ni.com/t5/LabVIEW/tab-control-background-color-matching/m-p/1533096
Can the solution help me? Thanks!
Yer original link is old (from LAVA 1) - here is the relink:
04-22-2011 09:33 AM
This is awesome. I have seen that system label before, but I just ignored it, thinking that it is completely redundent, since free text would do the same job (I thought). Learn something new everyday. Now my panel looks much much better.