Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SavePosition and RestorePosition in Multi-Lingual Apps
Message
 
To
28/01/2003 16:25:41
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Miscellaneous
Thread ID:
00746435
Message ID:
00747162
Views:
14
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform