Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

windows work differently in runtime

Status
Not open for further replies.

davekirbawy

Technical User
Feb 19, 2003
7
US
When I use define window (in VFP7) which was included for backword compatibility I find it runs differently under runtime than under interactively. The runtime seems to create a "shorter window"

Any thoughts
 
davekirbawy

I believe the desktop area (less the bottom gray area ) is calculated differently in VFP7.0, that might account for the difference, but may I suggest you move onto OOP type programming where things are measured in pixels.

Mike Gagnon

If you want to get the best response to a question, please check out FAQ184-2483 first.
 
I think Mike's onto the problem: We have a relatively large application still using DEFINE WINDOW all over the place, and it works fine: However, the resulting size of the window is dependent on what fonts are selected for the Window and for _SCREEN.

If I remember right,
Code:
DEFINE WINDOW winName AT Row,Col SIZE Hig,Wid FONT fntName,ptsize
uses the _SCREEN font to calculate the AT position and the fntName/ptSize to calculate height and width,

while:
Code:
DEFINE WINDOW winName FROM top,lft TO bot,rgt FONT fntName,ptSize
uses the _SCREEN font for both top,lft and bot,rgt
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top