Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Center Form on Rotation
Message
 
 
À
19/01/2017 10:47:11
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
01646851
Message ID:
01646859
Vues:
40
>>>>Hi,
>>>>Running an app (VFP 9) on a tablet.
>>>>Initially a form is centered. But when a user rotates the tablet (e.g. from portrait to landscape), how to you make the form to be centered again?
>>>>TIA
>>>
>>>Left my tablet at home, so no direct way to test this, but I think that setting DisplayOrientation will mimic the rotation induced by the user.
>>> [snip]
>>
>>First, thank you for the code.
>>Do I understand correctly that this code has to be at the Top of the application and will apply to every form?
>>I thought I would need to add the "centering" code in every form.
>>Could you, please, clarify?
>
>This is just a demonstrator. A real-world implementation will depend on how is your application displaying its forms. Do you work on the VFP screen, or do you have one or more Top-Forms?

My app uses VFP screen and then each form is opened from a toolbar at top of the application. So I will try to "convert" your code into using it in each form separately. The entire application has less than 10 forms.
Again, thank you.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform