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:
00888165
Views:
10
Hi

THIS.PARENT.cGroupIcon and THIS.PARENT.cSingleIcon I have tried both the properties with and without full path and only just filename. I have also included the .ico files in the .exe/project. I have also tried to put in the .ico files in the app and data folder so atleast they are in the path. Also the original .ico files are in a constant directory, so assuming that the .ico are found in the development version, why are they not found in the same place, on the same machine, when installed.

I have installed both mscomctl.ocx and comctl32.ocx just in case there are versioning problems between 5 and 6 in VFPTreeView. I have also tried putting one of each just in case, but no luck on the installed version as usual. I have also tried registering them manually, no luck.

>What really confuses me is
>>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
>>
Regards
Bhavbhuti
___________________________________________
Softwares for Indian Businesses at:
http://venussoftop.tripod.com
___________________________________________
venussoftop@gmail.com
___________________________________________
Previous
Reply
Map
View

Click here to load this message in the networking platform