05-14-2020 05:20 PM
Hello All,
I have an unwanted behavior when clicking an NXG button, it turns black when the mouse hovers over it. I have nothing in my code telling it to do this. I've changed the true/false color and added multi Boolean text to the button. Anyone have any pointers to get it to not do this? Thanks.
Solved! Go to Solution.
05-15-2020 01:11 AM - edited 05-15-2020 01:12 AM
Is it just that button? (If it is, maybe the simple fix is just to replace it.)
Can you supply the button, itself?
05-15-2020 12:13 PM
Don't know about NXG, but in classic LV, a button can have 6 picture items:
It could be that the rollover picture items are set to black images.
05-15-2020 01:57 PM
@boomer7010 wrote:
Hello All,
I have an unwanted behavior when clicking an NXG button, it turns black when the mouse hovers over it. I have nothing in my code telling it to do this. I've changed the true/false color and added multi Boolean text to the button. Anyone have any pointers to get it to not do this? Thanks.
I just noticed the same thing happening today and happened to see this topic. Paul has the right idea on why this is happening. With the original NXG button everything is fine. But when I changed the true color to green using the properties on the appearance tab LabVIEW changed 2 states to black. I would go with a bug.
Since I already have about 40 buttons with this issue, what would be the best way to correct the issue? Modifying 1 button at a time does not sound fun. I am actually using the buttons as status indicators, that is why I was changing the T/F colors.
I am using LV2018 and just tried 2019 SP1 and had the same issue.
05-22-2020 05:18 AM
Sorry for the late reply. It seems the only fix is to create a custom control and change the 2 of 6 colors to the desired colors. Thanks all for the replies.
01-14-2021 02:44 AM - edited 01-14-2021 03:31 AM
Hi all,
I know this topic has been solved, however I have found a solution which doesn't require one to create custom controls.
I experienced the same issues like mentioned before, NXG buttons turning black when the mouse hovers over it in Labview 2019. You can however change all the colors of a button during runtime with the "Colors[4] Property". I always thought you could just change 4 Colors because of the 4 in the brackets. However, you can actually change more than that. I attached a VI showing the different colors I tested and used myself. This can be useful since you can change the colors dynamically in your code, if this is needed.
Hope this helps someone out there!
Best regards,
Alex
02-02-2021 09:45 AM
Hello, have we had any official reply from NI on that? I can see that the issue is still not fixed.
10-01-2021 03:33 AM - edited 10-01-2021 03:35 AM
Thank you so much! Setting the 4-color Property with 6 colors solves my problem!