Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Order of Instantiation
Message
 
À
19/06/2007 14:31:41
John Tomblin
Service Station Systems, Inc.
San Jose, Californie, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Divers
Thread ID:
01234334
Message ID:
01234367
Vues:
13
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?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform