Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Saving the Application Size & Location
Message
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Miscellaneous
Thread ID:
00180057
Message ID:
00180249
Views:
17
>>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform