Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
I can't believe I'm asking this....
Message
De
30/04/1999 09:37:35
Paul Frost
Instem Computer Systems Ltd
Stone, Royaume Uni
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00213782
Message ID:
00213862
Vues:
31
>>I've redefined the dimensions of my main app window to 400x228 (heightxwidth). I need to center the app in the users window.
>>Because this is the main foxpro window the autocenter property is not available.
>>
>>Please help my tired brain remember the trick to solving this problem.
>>
>>TIA
>>
>>Brad
>
>How about _screen.autocenter = .t.? This worked for me.

Ensure you set autocenter AFTER resizing :
_screen.height = 400
_screen.width = 222
_screen.autocenter = .T.

I don't think the autocenter status prior to resizing matters, but the centering operation seems to be done only when the property is set.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform