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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Same window in different sizes

Status
Not open for further replies.

SitesMasstec

Programmer
Sep 26, 2010
523
Brasil
Hello colleagues!

I have defined a window to be activated when the user press the F7 key:
Code:
DEFINE WINDOW JanelaStatus IN DESKTOP;
  	FROM  11,33 TO 52,112;
	FONT 'Courier New',10;
	STYLE 'B';
	PANEL;
	COLOR RGB(255,255,255, 137,70,70), RGB(0,0,0,  255,255,255)

That works ok in both VFP development area and when the application (EXE) is distributed. There is a small problem:
When I execute in the VFP development area (PRG file) the result after pressing F7 key is:
JanelaVFP_Desenv_b0auul.jpg


And when the application (EXE file) is executed and the F7 key is pressed the result is:
JanelaVFP_Aplicat_zbcrwr.jpg


Why is the window shows two different sizes?



Thank you,
SitesMasstec
 
Just a quick guess: The font set in _screen will define the size of a character and window size will correspond to that and not what font and size you specify for the window interior usage.

So try to set the font and fontsize you have in your IDE in the main.prg of your code, so at EXE runtime the same font and its metric is used.

Bye, Olaf.

Olaf Doschke Software Engineering
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top