Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ListView/ImageList
Message
 
To
31/08/1999 10:49:18
Elyse Pomerantz
Dynamic Data Concepts, Inc.
Brooklyn, New York, United States
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00259136
Message ID:
00259676
Views:
20
>>>Thanks, but I tried this. First of all, that help seems to be in Visual Basic. Also, I couldn't find good examples of how to use the controls. How can I link the ImageList to the ListView? Or why would my code work from the command window but not in an EXE?
>>>
>>>Thanks,
>>
>>Hi elyse,
>>
>>PMFJI, but first of all the ImageList(s) must be placed on the form before the ListView. You then can use the ListView Properties dialog (not the VFP property sheet) to select which ImageList applies to what.
>>
>>The bitmaps should be included (built in) with the EXE in order to work properly.
>>
>>You might want to take a look at how I use the ImageList in my Obj2Bmp application that's available for download here at the UT. I use a PictureClip control to hold a single bitmap with all the necessary images.
>
>The line my program is crashing on is:
>
>this.imlListView.Object.ListImages.Add(1, , LOADPICTURE("MyPict.bmp"))
>
>The bitmap IS built into the EXE. What I find most frustrating is that the program works when I run the main program from the command window, but if I run the EXE from the command window or from outside of VFP, I get an error "Unknown COM status code."

Hi Elyse,

I assume that "imlListView" is the name of the ImageList. Have you tried:
this.imlListView.ListImages.Add(1, , LOADPICTURE("MyPict.bmp"))?

In some cases, the Object qualifier isn't necessary. I'm not sure if this is one of them or not.
George

Ubi caritas et amor, deus ibi est
Previous
Reply
Map
View

Click here to load this message in the networking platform