Sky Software Homepage LogicNP Software Knowledge Base And FAQ

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

HOWTO : Use custom overlay icons in FileView.Net

 
Subscribe to the RSS feed for this forum  Forum Index -> FileView.Net/WPF
View previous topic :: View next topic  
Author Message
Support



Joined: 18 Jul 2005
Posts: 731

Posted: Fri Oct 07, 2005 4:46 pm    Post subject: HOWTO : Use custom overlay icons in FileView.Net

FileView.Net can display custom overlay icons ( other than the shortcut and shared overlay icons ) for items. The following sample code demonstrates how to do this :

[C#]
' add the overlay icon to the Large imagelist of FileView. This method returns the index of the added overlay icon in the FileView large image list
overlayIconIndex = fileView1.AddCustomIcon(new Bitmap(@"c:\customoverlayicon.bmp"),FileViewImageLists.Large);

'Next, use the SetOverlayIcon method to set this index as an overlayicon index, this method returns the index of the overlay icon.
overlayIndex = fileview1.SetOverlayIcon(overlayIconIndex, FileViewImageLists.Large);

'Next use the returned overlayindex with items in FileView
fileView1.FirstSelectedItem.OverlayIconIndex = overlayIndex;
Back to top
Display posts from previous:   
Forum Index -> FileView.Net/WPF All times are GMT
Page 1 of 1

 
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group