Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Adding objects dynamically on form
Message
From
12/05/2004 03:18:21
 
 
To
10/05/2004 14:03:14
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00902520
Message ID:
00903074
Views:
28
Hi, thanks for your reaction.

I think the dodefault() idea wouldn't work in my case, because the method I'm talking about is a complete new one I added to the class, so there's no parent code or so of it.

within the method, named objcustomize, the code goes as

parameter left, top, width, right, caption
with this
.left = left
.right = right
.top = top
.caption = alltrim(caption)
endwith

Within de form building code I use scan - endscan to loop through the list of questions that must be set upon the form. For each question I do follow

with form.pageframe.page
.addobject('objectname','classname')
oNewobject = evaluate(form.pageframe.page.newobject)
oNewobject.visible = .T.
oNewobject.objcustomize(left, top, width, right, caption)
endwith

all works well except the objcustomize line. That seems to be skipped.

I hope this gives you more info and you can help me out.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform