Print Page | Close Window

ListView - some missing events/properties

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Suite Pro
Forum Description: Topics Related to Codejock Suite Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=8800
Printed Date: 16 November 2024 at 4:47pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: ListView - some missing events/properties
Posted By: ijwelch
Subject: ListView - some missing events/properties
Date 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



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net