Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to maintain Top, Left values with AutoCenter = .T.
Message
De
04/08/2008 04:04:42
 
 
À
04/08/2008 03:13:08
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
01336194
Message ID:
01336203
Vues:
29
This message has been marked as the solution to the initial question of the thread.
Hi Lim,

you could keep AutoCenter = .T. but within the INIT-Event of your form there would be the following code:


IF _vfp.StartMode = 0
Thisform.Top = 0
Thisform.Left = 0
ENDIF


>>Hi Lim.
>>
>>When you set AutoCenter to .T. you are telling VFP to ignore the Top and Left values and automatically center the form in the display. If you want it to appear where the Top and left point, then don't turn AutoCenter on, leave it at .F.
>>
>>Ian Simcock.
>>
>
>The odd thing is, VFP not really ignore Top and Left properties, it reset them to default values.
>The problem is, I need the form to be at top left corner at design time, but center when run...
Best Regards
-Tom

Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are,
by definition, not smart enough to debug it.

Oh, and BTW: 010101100100011001010000011110000101001001101111011000110110101101110011
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform