Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
LED Changing the color by code
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00611535
Message ID:
00611552
Vues:
19
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!
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform