Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Dynamically adding controls at runtime problem
Message
 
To
05/11/1998 16:25:20
Rex Mahel
Realm Software, Llc
Ohio, United States
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Miscellaneous
Thread ID:
00154801
Message ID:
00155100
Views:
29
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform