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

Setting max screen size 1

Status
Not open for further replies.

safarijoe2000

Programmer
Jul 25, 2002
38
GB
Hello,

I figure this one is an easy one.

I'd like to know how can I control the max screen size. Is there a way to whenever I start up an application or open up a page ? So these will automatically open up to the maximum screen size.

Thanks once again for any help.

 
use SYSMETRIC() function to get control of the screen size.

You can use the same to control the form sizes based on resolution.

EX:
form1.width=sysmetric(1)
form1.height=sysmetric(2)


regds
vijay


 
Do you mean main VFP screen ? If so, try this:
_Screen.WindowState = 2

Regards

-- AirCon --
 
Hi

In all your forms, set the WINDOWSTATE property to 2.

In your main.prg or in the main forms init event, add the code..
_SCREEN.WINDOWSTATE = 2


:)

ramani :)
(Subramanian.G),FoxAcc, ramani_g@yahoo.com

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top