Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
AutoCenter
Message
 
À
24/07/2005 18:57:18
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
01035549
Message ID:
01035574
Vues:
10
Nice use of the sysinfo control Fabio.

>>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
>
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform