Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Newobject not visible
Message
 
 
À
17/11/2008 17:43:20
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9
Divers
Thread ID:
01362403
Message ID:
01362612
Vues:
11
Peter,

You must use AddObject() not NewObject() for this sort of runtime object. An object needs to be in the containership hierarchy of a form in order to be a visibile entity and participate in the event loop.

>i want to add objects on the fly at runtime
>this code:
>
>THIS.PARENT.REMOVEOBJECT("cntTask")
>THISFORM.pgf1.page2.NEWOBJECT("cntTask","cntTasks_general","modules\vcmc.vcx",THISFORM.business.DATA.mainidValue)
>WITH THISFORM.pgf1.page2.cntTask
>	.LEFT=0
>	.TOP= 216
>	.VISIBLE=.T.  &&&<<------ this should make it visible, or not???
>ENDWITH
>
>
>
>does not make it visible.
>
>What am i doing wrong?
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform