Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Newobject not visible
Message
From
17/11/2008 19:18:49
 
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9
Miscellaneous
Thread ID:
01362403
Message ID:
01362425
Views:
12
eventually I'll have 10 or more buttons each removing and addin a new container. So the activate of the page would not help here, I think

>Put it in the Page Activate and see if this would help.
>
>>in the click method of a button
>>
>>
>>
>>>>i want to add objects on the fly at runtime
>>>>this code:
>>>>
>>>>THIS.PARENT.REMOVEOBJECT("cntTask")
>>>>THISFORM.pgf1.page2.NEWOBJECT("cntTask","cntTasks_general","modules\vcmc.vcx",THISFORM.business.DATA.mainidValue)
>>>>WITH THISFORM.pgf1.page2.cntTask
>>>>	.LEFT=0
>>>>	.TOP= 216
>>>>	.VISIBLE=.T.  &&&<<------ this should make it visible, or not???
>>>>ENDWITH
>>>>
>>>>
>>>>
>>>>does not make it visible.
>>>>
>>>>What am i doing wrong?
>>>>
>>>>
>>>>this is insted of many pageframe pages wwhich make it quite slow. So I thought I could plop in containers when needed
>>>>
>>>>
>>>>Thanks
>>>>
>>>>Peter
>>>
>>>Where did you place this code? If Page2 Activate method?
Peter Cortiel
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform