Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
V6s5 - TreeView I just hit dirt, clear it to get paid :-
Message
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00887908
Message ID:
00888135
Views:
11
>
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform