Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Center Form on Rotation
Message
From
19/01/2017 17:08:00
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
01646851
Message ID:
01646876
Views:
40
>>>
>>>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.
>
>Thank you!

You're welcome.

I'll be interested on your exploration and findings, and I suppose I won't be alone in that, so it would be great if you report us back now and then.
----------------------------------
António Tavares Lopes
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform