Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Center Form on Rotation
Message
De
19/01/2017 16:00:41
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
01646851
Message ID:
01646874
Vues:
33
>
>Although now that I see it works, I will have to change the approach. I think instead of centering a form, I will center it - width-wise - but will "anchor" to the top toolbar. The tablets' keyboard is always on the bottom and if I center the form, sometimes the keyboard covers the textbox. So it is better to move the form up, to give the keyboard more room. I think your code will work still very well but I will have to calculate the width and height of the window and move it accordingly.

In the ReCenter method, if INLIST(_Screen.DisplayOrientation,1,3), after This.AutoCenter = .T. command you may set This.AutoCenter = .F. again, and adjust This.Top to cater for the keyboard display.
----------------------------------
António Tavares Lopes
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform