10-31-2013 04:11 PM
Hi everybody!
I would like to know how we can apply different boolean text color in a same word.
My VI should displayed the beginning of the sentence in red and the end in white.
But it is always displayed in white.
So need your help to understand this problem.
Thx for your time.
10-31-2013 04:31 PM
I think we may need another opinion but as far as I see this is a bug. The actual property you want to use to change the color is Boolean Text >> Font >> Color but even after fixing that it didn't work. An alternative you can use is the boolean caption which appears to work as expected. Attched is my update that shows it not working for boolean text, but working for the Caption.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
15 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
10-31-2013 04:43 PM
Thank you so much for your answer!
In fact I use the boolean text because I would like to click through the text to activate the control.
If I use the caption I cannot click through.
Do you think that there is an alternative?
10-31-2013 04:59 PM
@gaztean wrote:
Do you think that there is an alternative?
There are many alternatives but all that come to mind are clunky. You can still use the Caption text, but then capture a "Mouse Down" event that can tell you that the user clicked on it. I justed tested it and it does allow you to click on the Caption and the event is still generated.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
15 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
11-01-2013 07:57 AM
@gaztean wrote:
Thank you so much for your answer!
In fact I use the boolean text because I would like to click through the text to activate the control.
If I use the caption I cannot click through.
Do you think that there is an alternative?
You could place the caption on top of your control button, then it will appear to click through for the user.
Cameron
11-01-2013 08:40 AM
@camerond wrote:
You could place the caption on top of your control button, then it will appear to click through for the user.
Cameron
Did you try this? Because I just did in 2012 SP1 and it does not work this way. If you place a caption on top of the button, when you click the caption the button does not change value. You must click the button where the caption is not on top of it.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
15 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
11-01-2013 08:53 AM - edited 11-01-2013 08:54 AM
My bad. I could have sworn I did this earlier, but it must have been something else similar (in my mind, anyway). Too late to edit reply, though, sorry.
Cameron
11-01-2013 09:14 AM
The other option (And I KNOW it sounds hooky but it should work)
Place a "Ghost" boolean (all colors set to transparent) over the top of the "Real" Boolean that has the funky colored caption blocking clicks. capture the Mouse Down and mouse leave events on the "Ghost" boolean updating the value and / or val signaling properties of the real boolean (to match the desired mechanical action).
11-01-2013 09:33 AM
This is an old bug. There used to be a work-around, but they enhanced the bug so the work-around doesn't work anymore.
It used to be that you could create a free-floating label with the font and color variations that you wanted, then cut and paste it into the boolean text.
11-01-2013 09:34 AM
@Hooovahh wrote:
I think we may need another opinion but as far as I see this is a bug. The actual property you want to use to change the color is Boolean Text >> Font >> Color but even after fixing that it didn't work.
why is that? can this be reported.....
btw, i like camerond idea by moving the caption into place and toggle accordingly w bool text not showing