Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Centering forms
Message
De
27/08/2003 14:59:49
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Divers
Thread ID:
00823316
Message ID:
00823903
Vues:
27
Yep, my most "unexplainable" erros can usually be tracked down to something I've done and not realizing it. Glad you found it.

>Thanks Fred
>There is always an explanation and Top and Left were being set in the hierarchy of the application object.
>The Menu Items were calling goapp.doform and in the doform method there was an oForm.Left = something and that was negating my autocenter.
>My face is a bit Red now
>Thanks - hope this points the others in this thread to the right area to look.
>
>>If you build a new form, does it do the same thing, or does it work correctly? Maybe your form is corrupted somehow.
>>
>>
>>>Fred
>>>Tried that and there is nothing in the code that sets Top or Left or Autocenter after that Autocenter = .t. in the init of the form. But it does not autocenter
>>>regards
>>>>>Fred
>>>>>Thanks but that is already in the init.
>>>>>Works fine in the development but the .exe puts the form in the top left of the screen.
>>>>>I have searched for a reason and found nothing - the users said its no big deal but i wanted to solve it so that i could understand why it changed. There is nothing in the code - but it is consistent - happened after VFP8 - deleting fowuser does not change it. Happens here and at the client site. Happens on most forms but not all and I can not see any difference. On one form only it flashes in the center and settles to top left of screen.
>>>>>Thanks for your input - I was really just trying to add some support to the thread.
>>>>
>>>>Then it sure sounds like you've go some code some where else that's moving it to the upper left. Try setting it to .F. and THEN setting it to .T. in the Init.
>>>>
>>>>
>>>>>
>>>>>
>>>>>>>I can confirm that autocenter is not working on one of my applications.
>>>>>>>It used to work but it decided to stop - VFP7 and 8 - setting the form.autocenter to .t. no longer works - after lots of searching i gave up.
>>>>>>>If you solve it please include me in the answer.
>>>>>>>TIA
>>>>>>>>hi caroline,
>>>>>>>>
>>>>>>>>i don't have anything for re-positioning.. i'm confused.. should i not set the "always on top" to .T.?
>>>>>>>>
>>>>>>>>i tried setting this to .F. and run the form.. but it's still not working..
>>>>>>>>
>>>>>>>>is there any substitute for "autocenter"?
>>>>>>
>>>>>>Try setting it in the .Init of the form:
>>>>>>
thisform.AutoCenter = .t.
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform