Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SavePosition and RestorePosition in Multi-Lingual Apps
Message
 
À
28/01/2003 16:25:41
Information générale
Forum:
Visual FoxPro
Catégorie:
The Mere Mortals Framework
Divers
Thread ID:
00746435
Message ID:
00747162
Vues:
15
Mark,

>The cbaseForm 's ( cforms.vcx ) methods SavePosition and RestorePosition use the form's caption as a reference (register or ini file) to the form of which the position has to be saved or restored. But when used in multilingual applications, there's an apparently strange behaviour about this.

Good point! Let me know if the following Framework change works for you:

*--- MM Code Change
In CBaseForm.ChangePosition()...

Change...
lcCaption = LEFT(this.Caption, ;
    RAT(this.cFormNumberSeparator, this.Caption) - 1)
To...
lcCaption = LEFT(this.GetOriginalcaption(), ;
    RAT(this.cFormNumberSeparator, this.Caption) - 1)
Regards,
Kevin McNeish
Eight-Time .NET MVP
VFP and iOS Author, Speaker & Trainer
Oak Leaf Enterprises, Inc.
Chief Architect, MM Framework
http://www.oakleafsd.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform