Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DBI-Tech ctListBar
Message
 
To
09/07/2004 17:07:10
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00922627
Message ID:
00922760
Views:
16
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
Previous
Reply
Map
View

Click here to load this message in the networking platform