Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Saving the Application Size & Location
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
The Mere Mortals Framework
Divers
Thread ID:
00180057
Message ID:
00180249
Vues:
18
>>Anyone know of a good way to save/restore the size and location of the application on the desktop utilizing the MM framework?>
>
>Are you talking about the size of _SCREEN?
>
>If so, you can create a new registry / .ini entry and use the goApp.SetSetting and GetSetting methods to save and restore these values. Check out CBaseForm.RestorePosition() and SavePosition() for an example of how to accomplish this.
>
>Regards,

This is kind of what I have done. I have recreated these methods as part of the application class, so that I can save when the app is destroyed and restore when the app is initialized. However, this 'seems' too late in the game.

Do I need to use a top-level form? Some insight would be greatly appreciated.

Also, another 'weird' thing is happening when I use the application's saveposition() that I created. It is essentially the same as cbaseform's saveposition, except the references are different, and I sporadically get GPF's (alias C0000005). When I disable this code, I don't get the C0000005 error.

Thanks.

Doug Stalter

"According to the proverb, the best things are the most difficult." -Plutarch
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform