08-12-2019 08:48 AM
Hello, I want to have some buttons with a transparent background regardless whether the buttons is clicked or if the mouse is hovered.
However, when I use a button from the NXG or new JKI Flat package, changing a color from the properties menu causes the mouse hover color to become black regardless of which color I chose. If I do it programmatically with a property node I can only change 4 colors (ON, OFF, T>F, F>T) and not the hover color.
How can I change this to also be transparent?
I've attached a sample vi to show the problem.
Solved! Go to Solution.
08-12-2019 09:04 AM
Question: why are you using a button with hover states, if you don't want hover states?
08-12-2019 09:16 AM
Because I have an icon package (in this case JKI Flat) that doesn't have buttons without a hover state.
08-12-2019 11:52 AM - edited 08-12-2019 12:12 PM
So, this property node says colors[4] but it's lying, you can actually shove 6 colors in there and it will work if it is a six state button. I was so confused the first time I tried it, but it really works. The order (if I remember correctly) is false, true, true transitioning to false, false transitioning to true, false mouseover, true mouseover.
08-13-2019 05:23 AM
Hah, that does indeed work, really weird that it says colors[4] then. Thanks for the answer!