Same window in different sizes
Same window in different sizes
(OP)
Hello colleagues!
I have defined a window to be activated when the user press the F7 key:
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:

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

Why is the window shows two different sizes?
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:

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

Why is the window shows two different sizes?
Thank you,
SitesMasstec
RE: Same window in different sizes
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
https://www.doschke.name