Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ListView/ImageList
Message
De
01/09/1999 09:02:50
Elyse Pomerantz
Dynamic Data Concepts, Inc.
Brooklyn, New York, États-Unis
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
00259136
Message ID:
00260105
Vues:
17
>>>>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."
>
>Elyse,
>
>Keep the bitmaps out of the EXE and distribute them with it. This should fix your problem.
>
>José

Thanks! This did the trick!
Elyse Pomerantz
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform