Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to get windows to save positions in APP
Message
From
20/08/1999 12:14:15
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00255821
Message ID:
00255911
Views:
32
>>>OK, I'm hitting a wall here, and I don't know how to get around it...even though it seems that everyone else knows how to scale it!!!
>>>
>>>HOW THE !@## DO YOU GET YOUR APP TO SAVE THE POSITION AND SIZE WHEN THE USER EXITS THE PROGRAM?!?!?!
>>>
>>>I've got RESOURCE ON in my prog that calls my forms and stuff, my foxuser.dbf is in the proper place...HOW DO I USE IT??? Am I totally missing something here? ARGH!
>>>
>>>So to recap from my rantings: I need to have my apps remember the state in which they were exited (window state, position, etc.)...for some reason I thought that this was implicite by setting RESOURCE ON, but I guess not. Any help would be appreciated:) (happy friday:))
>>
>>Nice idea - but no.
>>VFP won't save window positions automatically on exiting your application. You'll have to record this info somewhere (registry or .INI file) when your application terminates, then on startup, recover the info and re-set the postions.
>
>What the?!?!? really? damn, I thought that was the reason for using the stupid foxuser.??? files...argh...well can you explain the best way about using a .ini file like you suggest?
>
>Thanks for the reply:)

There is another option. Use a DBF to hold all the data and write routines to store, retrieve and apply it to the forms. This is the method I personally prefer, but others prefer the Registry method. I would think that fewer would use INI files today since they are out of vogue. I have used then and still do for some small purposes. Interestingly I have a COM server on a web server that I'm using XML to store the init data, mostly as a chance to learn something about XML, but it works ok.

Bill
William A. Caton III
Software Engineer
MAXIMUS
Atlanta, Ga.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform