Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DBI-Tech ctListBar
Message
From
09/07/2004 16:27:26
 
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00922627
Message ID:
00922716
Views:
21
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")
>
>
>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
Next
Reply
Map
View

Click here to load this message in the networking platform