Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Saving Window Location
Message
From
03/03/2008 01:09:23
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Saving Window Location
Environment versions
Visual FoxPro:
VFP 9 SP2
Miscellaneous
Thread ID:
01298086
Message ID:
01298086
Views:
65
Hi All,

I am trying to save the users preferred window location of my app so that it can be restored the next time the app is run. However, there seems to be an additional 80 pixels in height coming from somewhere? Setting _SCREEN.TOP=0 results in the app being off the top of the screen (you can see this even from the command window in the IDE).

If I restore _SCREEN.TOP to what it is what when I exited the app then the window appears about 80 pixels further down again? I have tried under WinXP and Vista. Using VFP9/SP1/2

Any ideas how to correctly restore the windows location and size?

Jos
In the End, we will remember not the words of our enemies, but the silence of our friends - Martin Luther King, Jr.
Next
Reply
Map
View

Click here to load this message in the networking platform