Support
Joined: 18 Jul 2005 Posts: 731
|
Posted: Thu Apr 19, 2007 2:25 pm Post subject: HOWTO : Add a custom thumbnail image to a custom item in the thumbnail view |
|
|
To supply a custom thumbnail image for an item, you must first add it to the FileView imagelist using AddCustomIcon method. This method returns an index value which you can use with AddCustomItem method.
You must add following code in the BeforeFill or AfterFill event of FileView.
[VB]
Private Sub FileView1_OnBeforeFill()
Dim thumbIndex As Integer
thumbIndex = FileView1.AddCustomIcon2("<<Full path of thumbnail image>>", Nothing, FIVILThumbnailsFramed)
Dim customItem As ListItem
Set customItem = FileView1.AddCustomItem("Custom item display name", thumbIndex)
End Sub |
|