Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Order of Instantiation
Message
 
To
19/06/2007 14:31:41
John Tomblin
Service Station Systems, Inc.
San Jose, California, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01234334
Message ID:
01234358
Views:
15
John,

One possible solution might be to have your activexs in nested containers, so you put in the innermost container the ActiveX controls that need first instantiation, and in the outermost the rest, lets say your ActiveXs are Ax, Bx and Cx, and Ax depends on Bx being instantiated and Bx depends on Cx being instantiated, so you could put in your form 3 nested transparent containers A, inside A you have B and inside B you have C, now you place Cx inside C, Bx inside B and Ax inside A, and because Fox always instantiates from the inner object to the Outer, Cx will instantiate before Bx before Ax


>There are activeX controls on the form that depend on other Activex controls to be in existence when they are instantiated.If not, the controls are not usable.
>
>We have tried adding the objects to the form in the order we want them to instantiate. That works for a while. But, after a while, it appears that Foxpro has reordered the objects and they stop working. Is Foxpro trying to optimize the form? If so, by what criteria?
"The five senses obstruct or deform the apprehension of reality."
Jorge L. Borges?

"Premature optimization is the root of all evil in programming."
Donald Knuth, repeating C. A. R. Hoare

"To die for a religion is easier than to live it absolutely"
Jorge L. Borges
Previous
Reply
Map
View

Click here to load this message in the networking platform