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