Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
V6s5 - TreeView I just hit dirt, clear it to get paid :-
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
00887908
Message ID:
00888135
Vues:
13
>
>The lines creating the problem are as follows:
>
THIS.PARENT.oleTreeView.Images.ADD(,,LOADPICTURE(THIS.PARENT.cGroupIcon))
>THIS.PARENT.oleTreeView.Images.ADD(,,LOADPICTURE(THIS.PARENT.cSingleIcon))
* Maybe it needs a path. cSingleIcon is it a file name, or does it include 
* the path? If they are all in one folder you might try:
ucImageFilePath="icons\"
* and then in the image list control
myForm.myImageList.listimages.Add(1,"SICON",LoadPicture(ucImageFolder+THIS.PARENT.cSingleIcon))
* Be sure that the tree view references the imagelist control
myForm.myTreeview.imagelist=myform.myImageList
* Then, include the image reference in the tree addnode 
myForm.myTreeview.Nodes.Add(,1,cMyNodeKey,cMyNodeLabel,"SICON")
* Note the last argument has "SICON", the name (or key) as added in the image list control
* MSCOMCtl would also need to be registered on the client desktop
>
>The error generated for both these lines one by one is:
>
Error #: 1426
>Message: OLE error code 0xACTIVECONTROL
>
Imagination is more important than knowledge
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform