11-19-2018 09:03 AM
@paul_cardinale wrote:
Perhaps something like this.
How did you actually make that?
11-19-2018 10:01 AM
11-19-2018 11:26 AM
But the text fields are fields, not part of a static image.
11-19-2018 11:52 AM
11-19-2018 11:53 AM - edited 11-19-2018 11:53 AM
Right. And the color changes with true/false change. And I'm wondering how he did that.
That's quite literally the entire subject of this thread, btw.
11-19-2018 01:41 PM
Hi marshaul,
And I'm wondering how he did that.
As I wrote before: customize a classic boolean button by replacing the images for OFF and ON states!
Did you read the LabVIEW help on "customizing controls"?
11-19-2018 02:31 PM
@marshaul wrote:
@paul_cardinale wrote:
Perhaps something like this.
How did you actually make that?
Setting the "OFF" colors to white and the "ON" colors to black causes the boolean text to toggle between black (for OFF), and white (for ON). Since I've imported images for the buttons, the Colors[4] property has no other effect (except on the boolean text).
11-19-2018 02:34 PM
@GerdW wrote:
Hi marshaul,
And I'm wondering how he did that.
As I wrote before: customize a classic boolean button by replacing the images for OFF and ON states!
Did you read the LabVIEW help on "customizing controls"?
As it happens, I have read that. Since we're sharing non sequiturs, I've also read this thread *cough cough*.
11-19-2018 02:34 PM - edited 11-19-2018 02:48 PM
@paul_cardinale wrote:
@marshaul wrote:
@paul_cardinale wrote:
Perhaps something like this.
How did you actually make that?
Setting the "OFF" colors to white and the "ON" colors to black causes the boolean text to toggle between black (for OFF), and white (for ON). Since I've imported images for the buttons, the Colors[4] property has no other effect (except on the boolean text).
Ah, thanks. You're actually taking advantage of labview's automatic use of white text on a black (in this case only nominally "black") background. Which means you can only use white OR black and some second color, but not e.g. red and green. Which is why I couldn't figure it out before.
Thanks for responding to the question at hand instead of your own assumptions.
11-19-2018 02:36 PM
@GerdW wrote:
Hi marshaul,
And I'm wondering how he did that.
As I wrote before: customize a classic boolean button by replacing the images for OFF and ON states!
Did you read the LabVIEW help on "customizing controls"?
But he wants the boolean text to be changeable at runtime, so you can't use images of "OFF" & "ON". You have to use the trick with the Colors[4] property to get boolean text to change color with the boolean state.