Jump to content


Photo
- - - - -

Grey out text


  • Please log in to reply
5 replies to this topic

#1 neil

neil

    Extremely Active

  • Members
  • PipPipPipPip
  • 414 posts
  • Location:Surrey, UK
  • Version:LabVIEW 2012
  • Since:2004

Posted 17 February 2012 - 02:22 PM

Hi GUI experts,

I have a bit of a problem I can't think of a way to solve (other than the obvious solution which I don't want to do).

Basically, can anybody think of a way of displaying a text string that has colouring corresponding to its state. In other words I don't want to change the text of the string, just want to make it "bright" when the boolean state is true, and "lightly greyed" when it is false, see the picture for an example of the "lightly greyed" case.

Now, of course this can be done using VI server calls to the text colour, but I want to avoid that. The reason is I would like this to be part of a bigger cluster with other things, and I want to just, from the BD, write the value to the indicator, so this precludes property nodes.

It is totally not a deal-breaker if I have to go down the property node route, just curious more than anything I suppose. :D

Can anybody think of how to do this without using property nodes?

Attached Thumbnails

  • text.png

CLA, CPI and CTM (Certified Tea Maker)

#2 mje

mje

    The 500 club

  • Premium Member
  • 814 posts
  • Location:Milford MA USA
  • Version:LabVIEW 2011
  • Since:1997

Posted 17 February 2012 - 02:49 PM

Too bad boolean buttons don't allow different color text based on value, it would allow you to do exactly what you want. Seems you can only change background color.

#3 ShaunR

ShaunR

    LabVIEW Archetype

  • Members
  • PipPipPipPipPipPip
  • 2,224 posts
  • Version:LabVIEW 2009
  • Since:1994

Posted 17 February 2012 - 03:18 PM

*
POPULAR

Turn off the text and use images.

Edited by ShaunR, 17 February 2012 - 03:26 PM.

A positive attitude may not solve all your problems, but it will annoy enough people to make it worth the effort. (Herm Albright 1876-1944).

Founder and general mischief maker on www.labview-tools.com.
SQlite aficionado and websocket zealot.
If it 'aint in LabVIEW, then you 'aint got a clue!

#4 neil

neil

    Extremely Active

  • Members
  • PipPipPipPip
  • 414 posts
  • Location:Surrey, UK
  • Version:LabVIEW 2012
  • Since:2004

Posted 17 February 2012 - 03:30 PM

Turn off the text and use images.


Sneaky! I like it :worshippy:
CLA, CPI and CTM (Certified Tea Maker)

#5 Yair

Yair

    Extwemely Active

  • Members
  • PipPipPipPipPipPip
  • 2,646 posts
  • Version:LabVIEW 2009
  • Since:2003

Posted 19 February 2012 - 01:13 PM

You could also vote for this idea - http://forums.ni.com...s/idi-p/1827265

#6 neil

neil

    Extremely Active

  • Members
  • PipPipPipPip
  • 414 posts
  • Location:Surrey, UK
  • Version:LabVIEW 2012
  • Since:2004

Posted 19 February 2012 - 09:36 PM

You could also vote for this idea - http://forums.ni.com...s/idi-p/1827265


I must have missed that one. Thanks!
CLA, CPI and CTM (Certified Tea Maker)