Jump to content

Change background color of array elememt


Recommended Posts

I'd like to be able to change the background color of a numeric control in an array. I can't find any properties that will let me do that. Is is possible?

George

I'd like to be able to change the background color of a numeric control in an array. I can't find any properties that will let me do that. Is is possible?

George

I fiigured it out. I wasn't downcasting properly. It's not enough to use the Numeric class specifier when using the "To More Specifc Class" VI. I had to create a reference from the actual control.

George

Link to comment

There is a strange property interaction with text colors. If you go to the properties popup list you will find that there are two "paths" to set BG color:

Numeric Text>Text Colors>BG Color

and

Numeric Text>Colors>BG Color

You can therefore modify tcplomp's VI as so:

post-45-1150374866.jpg?width=400

If you change the second color box and run the VI twice you get the same colors in the array both times. However, if you change the upper color box, (yellow in my example), the first time you run the VI the box is entirely yellow. On the second run it will be yellow with the red border color.

Bug?

Download File:post-45-1150375036.vi

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.