Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
AutoCenter
Message
From
24/07/2005 18:57:18
 
 
To
24/07/2005 16:05:13
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
01035549
Message ID:
01035569
Views:
10
>I have a screen (form) set as the background of my app. with AutoCenter=.t., but when
>my client changed the screen resolution, it was not at the center anymore. can I have it always at the center regardless the screen resolution?
>
>thanks for the help.
>
>regards,
>
>Jerry

try this
WITH NEWOBJECT("form1")
	.Show(1)
ENDWITH

DEFINE CLASS form1 AS form
	Desktop		= .T.
	AutoCenter	= .T.
	Caption		= "EveryTime centered"

	ADD OBJECT system AS olecontrol WITH ;
		OleClass	= "SYSINFO.SysInfo.1"

	PROCEDURE system.DisplayChanged
		ThisForm.Autocenter = m.ThisForm.Autocenter
	ENDPROC

ENDDEFINE
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform