Des exemples d'utilisation des fonctions du WLangage
Rien de tel qu'un exemple pour comprendre une fonction de WLangage. Dans cette section, vous trouverez des exemples simples.
Des exemples évolués, où la fonction est utilisée en contexte, sont également disponible sur ce site.
AnimationChangeParametre (en anglais AnimationSetParameter)
// Changement des paramètres d'animation d'une image
AnimationChangeParamètre (Image1, " AllerRetour" , Vrai )
|
AnimationChangeParametre (en anglais AnimationSetParameter)
// Changement des paramètres d'animation d'un libellé
AnimationChangeType(MonLibellé, "Clignotement") AnimationChangeParamètre (MonLibellé, "Durée", 100) AnimationChangeParamètre (MonLibellé, "Couleur", iBleuFoncé )
|
AnimationChangeType (en anglais AnimationSetType)
AnimationChangeType (en anglais AnimationSetType)
// Changement des paramètres d'animation d'un libellé
AnimationChangeType (MonLibellé, "Clignotement") AnimationChangeParamètre(MonLibellé, "Durée", 100) AnimationChangeParamètre(MonLibellé, "Couleur", iBleuFoncé )
|
AnimationLitParametre (en anglais AnimationGetParameter)
SI
AnimationLitParamètre
(Image1, "Boucle") =
Vrai
ALORS
AnimationChangeParamètre(Image1, "Boucle", Faux ) FIN
|
AnimationLitParametre (en anglais AnimationGetParameter)
SI
AnimationLitParamètre
(LibNomClient, "Couleur") =
iTransparent
ALORS
AnimationChangeParamètre(LibNomClient, "Couleur", iJauneClair ) FIN
|