Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Dynamically adding controls at runtime problem
Message
De
10/11/1998 10:29:39
Rex Mahel
Realm Software, Llc
Ohio, États-Unis
 
Information générale
Forum:
Visual FoxPro
Catégorie:
The Mere Mortals Framework
Divers
Thread ID:
00154801
Message ID:
00156138
Vues:
26
Kevin,

Now I can't get the container to release if it contains another BizObj, probably a dangling reference. Just for my information, why do we need to reset the UIEnabler.lActivated properties on an Add?

TIA

Rex

>Rex,
>
>>I found the problem. In the New button you call the cBizObjMaintBaseForm.New() in which you clear all the UIEnabler.lActivated properties in each page of the pageframe. In the cPageFrame.ClearUIEnablerlActivated method you clear the lActivated alright, but you don't check to see if the container has already been created.
>>
>>I replaced the old code in the cPageFrame.ClearUIEnablerlActivated method with:
>>
>>LOCAL loPage
>>
>>FOR EACH loPage in This.Pages
>>
>>IF TYPE("loPage.cntControls") = "O"
>>loPage.RemoveObject(loPage.cntControls.Name)
>>ENDIF
>>loPage.UIEnabler1.lActivated = .F.
>>ENDFOR
>
>Thanks for the heads up...I'll check it out.
>
>Regards,
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform