Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Adding Objects to a PageFrame on the Fly
Message
From
22/10/1998 11:59:37
 
 
To
22/10/1998 11:53:42
Calvin Smith
Wayne Reaves Computer Systems
Macon, Georgia, United States
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00149463
Message ID:
00149467
Views:
18
>Nobody ever told me it would be this hard!I have a screen with a grid. When the user presses enter a pageframe becomes visible for editing the current record. I want to programatically add labels and txtboxes for data entry to this pageframe. I can't seem to get the syntax nor the place in the event loop for using addobject or newobject or createobject or whichever command I am supposed to use. Can someone help me???? Thanks.

I guess pageframe will allow you to add pages only. Page will allow you to add Labels,Textboxes,etc. Both cases you use AddObject method, e.g.
Thisform.pgf1.page1.addobject("text1","textbox")
If you want to add bunch of controls at a time, the nicer way is to put them into container class and instanciate (AddObject again) container object.
Edward Pikman
Independent Consultant
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform