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:
01234367
Views:
14
John,
I'm assuming you are talking about image lists that are required for various ActiveX controls. Here's what I do in my ActiveX toolbars. In the base class of the Toolbar, create a ImageListClassName property, then in the Init() method of the toolbar, dynamically add the image list to the toolbar. This way the image list will always exist when needed at runtime. Also when designing the form, once you drop the toolbar control on the form, just specify the name of the image list class that this toolbar is suppose to use.
&& ActiveX Toolbar Init() method...
WITH THIS
	*	Dynamically create the image list object.  This way, I can ensure that
	*	the image list exists before using it for this toolbar.
	IF .AddObject('oImageList',.ImageListClassName)
		.OBJECT.ImageList = .oImageList
	ENDIF
ENDWITH
Kurt

>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?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform