Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Verify each object contained in form even with class obj
Message
 
 
À
13/12/2006 14:12:59
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
01177307
Message ID:
01177340
Vues:
17
This message has been marked as the solution to the initial question of the thread.
>I need to change in runtime some of the captions of labels and/or commandbutton, due to certain preferences of users. It's near to change the caption when switching between languajes.

Are you using your custom label class?

If so, one of the ways to achieve what you want would be to define some property of your label class, say, cUsedLanguage.

Add Assign method to this property and put there code like
lparameters uNewVal
if not this.cUsedLanaguage == m.uNewVal
   this.cUsedLanguage = m.uNewVal
   this.ChangeLanguage(this.cUsedLanguage)
endif
Then, when you want to change language you may call thisform.SetAll("cUsedLanguage", "Spanish") and this would call your method.

That's a trick I learned ~7 years ago from Tray Walpole..
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform