Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Load Order of records in the .SCX
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00085824
Message ID:
00085837
Vues:
34
>Does anyone know what controls the load order of items in a class?
>
>I have a class based on a container with two controls in it. In the .VCX the record for control #1 appears before the record for control #2, but the init event for control #2 is executing before the init event for control #1. Any idea what would cause this?
Leighton,

The creation order is controlled by the z-order of the controls, that is their position in the depth axis of the container.

If you were to place the controls on top of each other one of them would in front of the other. The one in back is created before the one in front.

You can control this by selecting the control you want created first and choosing Brign To Front from the Format menu, then do the same for the seond one and the third one etc. until you ahve been through them all. Once you have done this one you brought to front first will be the backmost one and so on.

Now that I have told how to set the creation order to be what you want, I will tell you that if there is a dependency on the creation order of the contained objects then thee is a serious design flaw in your class. Perhpas you can tell us why the creation order is important to you and we could suggest an alternative approach that would not be dependent on the creation order.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform