Nov 13, 2001 #1 TimSNL Programmer Sep 11, 2001 119 AU Hi, I have some code working which puts filenames into a TTreeView component. How do I get the correct icons to display against each file in the treeview? Thankyou for your help Tim Dover SNL Computing
Hi, I have some code working which puts filenames into a TTreeView component. How do I get the correct icons to display against each file in the treeview? Thankyou for your help Tim Dover SNL Computing
Nov 13, 2001 #2 svanels MIS Aug 18, 1999 1,393 SR Dear Tim, use an ImageList and fill it with the ImagesList editor. Set the images property of your treeview to your ImageList Open the Items Editor of your tree view Set the Image Index of your item to the number the image in your ImageList The selected Index will be shown when the item is selected Remarks S. van Els SAvanEls@cq-link.sr Upvote 0 Downvote
Dear Tim, use an ImageList and fill it with the ImagesList editor. Set the images property of your treeview to your ImageList Open the Items Editor of your tree view Set the Image Index of your item to the number the image in your ImageList The selected Index will be shown when the item is selected Remarks S. van Els SAvanEls@cq-link.sr
Nov 13, 2001 Thread starter #3 TimSNL Programmer Sep 11, 2001 119 AU Thanks for your reply, but this was not quite what i meant How can I get windows to tell me which icon to use for which file at runtime? This is the question I meant to ask. So, how can I find the icon associated with a file in windows (or the default icon is no association exists)? Upvote 0 Downvote
Thanks for your reply, but this was not quite what i meant How can I get windows to tell me which icon to use for which file at runtime? This is the question I meant to ask. So, how can I find the icon associated with a file in windows (or the default icon is no association exists)?