Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Exact object position
Message
 
 
À
27/06/2000 18:00:15
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00385253
Message ID:
00385451
Vues:
10
>>This refers to the actual object, not the object's container. Even if the object is in a container on a form, the object's Top and Left is still given from the top and left of the form.
>
>An object's Top and Left properties are relative to it's container, not necessarily the form.
>
>>I tried this on on a test form with a container, a textbox in the container and textbox on the form. I placed both textboxes with the same top and left [superimposed]. Both Top and Left props were the same.
>
>Are you sure one textbox was actually in the container?
>
>Straight from the help file:
>
>Top Property
>Specifies the distance between the top edge of a control or form and its container object . Available at design time and run time.
>
>Jon

Oops. My mistake was relying on the positioning shown in the status bar. One textbox was in the container and the other was in the form. The properties Top and Left are relative to the parent container.
Mark McCasland
Midlothian, TX USA
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform