ListView - some missing events/properties |
Post Reply |
Author | |
ijwelch
Senior Member Joined: 20 June 2006 Status: Offline Points: 262 |
Post Options
Thanks(0)
Posted: 16 November 2007 at 3:10am |
Hi Codejock,
In trying to implement a 'file list' type control using the Codejock ListView I came across a few missing features. Basically, loading the icons for each item is time consuming if there are a large number of files. The correct way to go about it is to load icons for each item as needed and then cache. This would be fine BUT: 1. There's no ListView_Scroll event and so no way to detect when items icons might need loading. 2. There's no ListViewItem.IsVisible property (I see the ListView.GetFirstVisible method, but then I need to check following items are visible or not) I'm not even sure if the above 'missing' features would accurately solve the problem anyway (sort order would affect things also I imagine). Maybe this could be done with a ListView_GetVisibleItemsIndexes method, or a ListView.VisibleListItems collection. Also, how about having a method added to the ImageManager control: ImageManager.LoadFileIcon(filename as string) - get's the system icon used for specified file. Finally, maybe 'FileListView' and 'FolderBrowser' controls would be a good addition to the SuitePro bundle? FileListView would need a Filter property to only show matching files, and an option to show 'preview' images for png files etc. Cheers Ian |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |