×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Same window in different sizes

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:

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

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
https://www.doschke.name

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close