Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
DBI-Tech ctListBar
Message
 
À
09/07/2004 17:07:10
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
00922627
Message ID:
00922760
Vues:
15
Oh, didn't know that one. Thanks for clarifying that Denis.

Nick


>From DBI Help
>nItem = ctListBar.AddPictureItem 2, "General", OLE_Picture.Picture
>nItem = ctListBar.AddImageItem 2, "General", 4
>
>LoadPicture(lcPictureFile) is foxpro function to create OLE_Picture.Picture object.
>
>Denis
>
>>I'm using 5.0. I guess the help menu never told me about the loadpicture(). Should I lookout for any other goofy things that help doesn't tell me? Thanks for all your help, it worked.
>>
>>nick
>>
>>
>>>Hi Nick
>>>Little example with DBI ctListBar 5.0
>>>
>>>
>>>lcPictureFile = Getpict()
>>>If !Empty(lcPictureFile)
>>>	loPicture = LoadPicture(lcPictureFile)
>>>	This.addPictureItem(1,"Item 1",loPicture)
>>>	lnPicture = This.addImage(loPicture)
>>>	This.addImageItem(1,"Item 2",lnPicture)
>>>Endif
>>>
>>>
>>>
>>>>I am trying to add an icon image to my dbi ctlistbar, but I keep getting errors. If I use addimageitem then it works:
>>>>
>>>>
thisform.ctListBar1.AddImageItem(1, "Bob Smith", 1)
>>>>
>>>>if I use addpictureitem, it bombs:
>>>>
>>>>
>>>>thisform.ctListBar1.addPictureItem(1,"bmp","close.bmp"+.picture)>>
>>>>
>>>>another thing is I can't seem to figure out how to run the image list program where I can add,insert and delete pictures.
>>>>
>>>>thanks
>>>>Nick
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform