Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Bring to front Or Send to back property?
Message
 
 
À
24/07/1998 00:35:26
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00119463
Message ID:
00120946
Vues:
50
I was attempting to create a container that could have controls and a data object in it, with the controls bound to properties of the data object. The issue with Init was in controlling the binding of controls to the data object.
As far as I can tell data binding occurs when an object's Init method fires. I also seem to remember that in order to bind an object's ControlSource to a property of another object, that object must Init before the bound control. I think my attempt to guarantee this had to do with invoking the ZOrder method of one object from the Init of another. I haven't looked at the material in months and I can't remember the details right now, but if you are interested, I'll see if I still have any notes and get back to you.
>IMO, this cannot work. In order to call the oMyObject.ZOrder(), oMyObject must be created already. But the object may be created after other objects on the form (because it may not be the first in the scx file). So, you cannot use the ZOrder method to change the creation order of the objects. But you can set this order as you like at design time.
Ned

Reality is.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform