Sky Software Homepage LogicNP Software Knowledge Base And FAQ

 
Contact Product Support    SearchSearch      Subscribe to the RSS feed for this forum

HOWTO : Add a custom thumbnail image to a custom item in the thumbnail view

 
Subscribe to the RSS feed for this forum  Forum Index -> FileView ActiveX Control
View previous topic :: View next topic  
Author Message
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
Back to top
Display posts from previous:   
Forum Index -> FileView ActiveX Control All times are GMT
Page 1 of 1

 
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group