Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
101 VFP7 Things, Part 16 - Screen Dimensions
Message
From
27/12/2000 02:17:08
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Other
Title:
101 VFP7 Things, Part 16 - Screen Dimensions
Miscellaneous
Thread ID:
00456986
Message ID:
00456986
Views:
65
Hey all,

Here's backwards compatibility issue that I found while debugging a routine to save the states of the _Screen. In VFP6, _screen.Height returned the same as _vfp.Height, and the rest of the screen attributes. The Height and Width returned the size of the workspace of the screen (the window, not including the toolbars, menu, title bar, status bar and borders) and the Top and Left returned the coordinates of the enitre window on the Windows Desktop.

Now, if VFP7, its different. _VFP.Top returns where the distance in pixels between the top of the windows desktop to the top of the VFP Title bar, where _Screen.Top tells you where the VFP workspace actually begins (so it includes the titlebar, any tool bars and the menu). VFP.Width is teh size of the window (including the borders and whats docked along the edges) where VFP.Width cuts out those items.
Next
Reply
Map
View

Click here to load this message in the networking platform