Sky Software Homepage LogicNP Software Knowledge Base And FAQ

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

HOWTO : Display custom icons and texts to files/folders shown in FolderView ActiveX Control.

 
Subscribe to the RSS feed for this forum  Forum Index -> FolderView ActiveX Control
View previous topic :: View next topic  
Author Message
Support



Joined: 18 Jul 2005
Posts: 731

Posted: Sat Jul 30, 2005 11:29 am    Post subject: HOWTO : Display custom icons and texts to files/folders shown in FolderView ActiveX Control.

You can display your own text or icons for files/folders shown in FolderView.

To change the text shown for a TreeNode, you should use the Text property. You can change this property for each node in the OnAfterNodeAdd event which is called after each node is added.

node1.Text = node1.DisplayName + "*"

To change the icons shown for a Treenode, you should use the IconIndex property. You can change this property for each node in the OnAfterNodeAdd event which is called after each node is added.

node1.IconIndex = 22

The above method allows you to display only those icons which are present in the system imagelist. If you want to display your own icons for nodes, then you should use the AddCustomIcon method. This method returns an index which you can then use with the IconIndex property.

Dim index as Integer
index= fldrvw.AddCustomIcon("c:\test.ico",Nothing)
node1.IconIndex = index
Back to top
Display posts from previous:   
Forum Index -> FolderView ActiveX Control All times are GMT
Page 1 of 1

 
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group