Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
LED Changing the color by code
Message
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00611535
Message ID:
00611552
Views:
18
Just set the .cColor = to the new color.

Example: Add an led (named led1) to a form and add a button with the following:
if thisform.led1.cColor = "Blue"
    thisform.led1.cColor = "Red"
else
    thisform.led1.cColor = "Blue"
endif
Now click the button and the led will change colors each time it's clicked. Note: The LED has to be on to see the color change. You can turn it on with the .flick method

hth

>Does anyone know how to change the color of the LED class by program code?
>
>Thanks
>
>Colin Northway
Roi
'MCP' Visual FoxPro

In Rome, there was a poem.
About a dog, who found two bone.
He lick the one, he lick the other.
He went pyscho, he drop dead!
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform