General information
Title:
101 VFP7 Things, Part 16 - Screen Dimensions
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only