08-27-2016 05:37 PM
I searched for "ctl class colors[] property" before posting.
I've changed Boolean background colors via their individual colors[] propertiy but I was wondering if there's a way to scan controls[] refnums and set the background colors based on key focus True/False.
See the snippet. I don't see a background colors property in the ctl class. Is there another class beneath 'ctl' that allows one to set Boolean colors[] property?
Thanks,
Solved! Go to Solution.
08-27-2016 05:47 PM
There is no property at the Control level. You will have to cast to more specific "Boolean" to get the property. However, you will have to do this in a case because it will error if the control is anything but Boolean.
Chief LabVIEW Architect, Testeract | Owner, Q Software Innovations, LLC (QSI)
Director, GCentral | Admin, LabVIEW Wiki | Creator, The QControl Toolkit
Certified LabVIEW Architect | LabVIEW Champion | NI Alliance Partner
08-27-2016 10:00 PM
That helped me arrive at a solution. I added some more logic to filter out indicators and Booleans that are skipped in tabbing. The code in the snippet can probably be simplified further.
Thanks,