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

Runtime _Screen displays then resize 1

Status
Not open for further replies.

openthinking

Programmer
May 17, 2004
4
US
Hello,

When I run my exe a full size window appear and then it resize to the define height and width I have entered with the _screen command. Is there anyway I can prevent this from happening.

Thanks
 
if you want the window to be a specific size why not set it as a propery or put it in the load event of the form so it reads the property before the form is actually created?

-Kevin
 
The screen I am having the problem with is the main screen that all other screen reside in. I define the size with the
_screen.height = 500
_screen.width= 775

when I run the program the main screen start at the upper left corner and then the correct height and width is set.

Is there a load event?

Thanks again
 
Hi Openthinking,

Are you saying that you don't want the user to see the screen at its original size, and then see it suddenly resize itself? You'd like the user to see the screen only at its final size?

If so, put this line in your Config.FPW file:

SCREEN = OFF

And put this line in your main program, soon after you have changed the _Screen's height and width:

_SCREEN.Visible = .T.

That way, you will avoid the unpleasant jerky effect of seeing the screen resize itself.

Mike



Mike Lewis
Edinburgh, Scotland

My Visual Foxpro web site: My Crystal Reports web site:
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top