Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Newobject not visible
Message
De
20/11/2008 10:17:32
 
 
À
20/11/2008 09:17:18
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9
Divers
Thread ID:
01362403
Message ID:
01363172
Vues:
13
Thanks, I now understand what I did wrong thanks to you and my friends at the UT


peter

>>I thought AddObject is for vfp controls, newobj for my own so I can define a source for the objct
>>Otehr than tat they do the same thing, I thought
>>
>>
>>I just asked a simlar question where i addobject lines to an array property and they son't show either
>
>There's a substantial difference in how you instantiate an object. If you want it to be visible, it must be a form or belong to a form (not necessarily directly to a form, but still; also, _screen is a form). If you call a createobject() or newobject() functions, you'll get invisible objects. You may assign references to these invisible objects to properties of a form (or any object on it), it still won't make them visible, and they won't have a parent (i.e. .parent=null).
>
>The only way to have a visible object is to either have it on a form at design time, or to use .addobject() or .newobject() methods of a visible (*) object, which will then be the parent of this object.
>
>-----
>(*) I guess the word I would rather have used would be "visiblable" - one that can be made visible.
Peter Cortiel
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform