LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Property for color of Silver Control borders

I assume this property exists, but I can't seem to find it.  I have a silver string indicator, I want to change the color of the border to indicate different test states, green/pass, red/fail at least.

 

Silver String Borders.png

 

0 Kudos
Message 1 of 7
(3,578 Views)

Text:Color:Background or Foreground, I can't remember which.

 

Not Text:Text Color:Background or Foreground.

 

Hmm, I just checked, seems I was mistaken.  Sorry.  Can't find it at the moment either.

0 Kudos
Message 2 of 7
(3,572 Views)

Some properties just aren't exposed.  For example the colors of the frames around the old classic controls:

ctl frames.png

There's no way to access them programmatically,

Every LV property has a unique 32-bit indentifier.  You can use that identifier to access the property.  None of the 4,294,967,295 codes yields access to the frame colors.

"If you weren't supposed to push it, it wouldn't be a button."
0 Kudos
Message 3 of 7
(3,554 Views)

If that's the case, you'll probably want to implement this by having a color box behind the control. Note that overlayed controls can sometimes cause performance issues.


___________________
Try to take over the world!
0 Kudos
Message 4 of 7
(3,533 Views)

Any directly solution now?

0 Kudos
Message 5 of 7
(936 Views)

Nothing has changed in the past 8 years.

 

You can't access the borders at runtime.

 

You have to customize your control to achieve the visual effect.

My favorite workaround is make the border transparent; use the caption instead.

You can resize the caption, and put it behind all components of your control.

 

George Zou
Message 6 of 7
(900 Views)

Hmm... I'm trying to generate a UI programmatically.

I'm kind of baffled that there is no property for string control border colors or colors in general other than the text itself.

I guess I'll have to make a custom control and use its path as an input for "New VI Object."

 

It seems like such a trivial thing to want to do...

🤔 

0 Kudos
Message 7 of 7
(510 Views)