Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Dynamically adding controls at runtime problem
Message
 
À
05/11/1998 16:25:20
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:
00155100
Vues:
25
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,
Kevin McNeish
Eight-Time .NET MVP
VFP and iOS Author, Speaker & Trainer
Oak Leaf Enterprises, Inc.
Chief Architect, MM Framework
http://www.oakleafsd.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform