george seifert Posted June 14, 2006 Report Share Posted June 14, 2006 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 Quote Link to comment
Ton Plomp Posted June 15, 2006 Report Share Posted June 15, 2006 This should do: Success Ton Quote Link to comment
Mike Ashe Posted June 15, 2006 Report Share Posted June 15, 2006 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: 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 Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.