LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Change color of disabled button

Hello,
how can i change the color of a "diabled and greyed" button? I customized the button with new pictures for the true and false-state. but when the button is disabled and greyed then its always the same color: grey.
Is it possible to change this color somehow?
Thx for oyur help
0 Kudos
Message 1 of 8
(4,018 Views)
If you set the enabled state property to "diabled and greyed", it's greyed Smiley Happy
But you can also set it to "disabled" instead. This won't grey out the control.

Message 2 of 8
(4,009 Views)
Thanks for that hint. That solves my first problem.

Second question is: Why is the color property sometimes not available?
In my example i have a cluster with OK-buttons and create a reference to the cluster. The i want to change the color of the first cluster-element. But the property color is not available.
The problem is not the reference. When i do the same with only one button (and no cluster) then it works.
Any idea how to solve this?

0 Kudos
Message 3 of 8
(4,000 Views)


@newone wrote:

The problem is not the reference.



The problem is the reference. The 'Controls[]' property of the cluster outputs an array of general control references. To use these you have to cast them to the right type so you can use them like you want.


Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas

LabVIEW, programming like it should be!
Message 4 of 8
(3,997 Views)


@newone wrote:

The problem is not the reference.



The problem is the reference. The 'Controls[]' property of the cluster outputs an array of general control references. To use these you have to cast them to the right type so you can use them like you want:


Ton


Message Edited by TonP on 09-26-2006 04:10 PM

Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas

LabVIEW, programming like it should be!
Message 5 of 8
(3,998 Views)
Hello TonP,
thank you very much for this ultra-fast solution of my problem.
Works perfect.
0 Kudos
Message 6 of 8
(3,985 Views)
Hmm, one more thing. I can connect now the color-property but i get an error (1055) and the color is not changing.
See attached picture.

0 Kudos
Message 7 of 8
(3,977 Views)
Edit: Forget my last post.... *g* i connected the wrong wires together. It works.
0 Kudos
Message 8 of 8
(3,974 Views)