Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Centering a Form
Message
De
01/01/1998 14:58:06
 
 
À
01/01/1998 12:25:41
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00068786
Message ID:
00068813
Vues:
32
>>I use the following to set the screen size:
>>
>>_screen.width = 792
>>_screen.height = 521
>>
>>However, when I open forms that are auto centering, they always appear in the center of the screen and not in the center of the form. Anyone know how I can correct this? The screen only starts out that size the user can expand/shring the form as they see fit. What I'm looking for is a method to center a form within the main visual foxpro screen and not the actual monitor screen. Thanks!
>>
>>Gary
>In the init of form :
>
>this.autocenter=.f.
>this.left = max((_screen.width - this.width) / 2,0) && If width could be greater than _screen.width
>this.top = max((_screen.height - this.height) / 2,0)
>
Ahh... Thanks Appreciate the help!
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform