Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ImageList with a ListView
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
00575817
Message ID:
00575830
Vues:
22
>I have an ImageList and a ListView a form.
>
>In the Init of the form I have:
>
>
>ThisForm.oleListView.ImageList = ThisForm.oleImages
>

>
>and I still get the "ImageList must be initialized..." error.
>
>Anyone know why?

Do you load any images into ImageList during its Init? If not, you can't associate it with another control. I put the following in my Treeview/ImageList container for this purpose:
With THISFORM
	if type(".OleIL.ListImages") = "O" ;
		and !isnull(.OleIL.ListImages) ;
		and .OleIL.ListImages.Count > 0 then
		.OleTV.ImageList = .OleIL
	endif
Endwith
HTH.
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform