Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.

ID: 25050, Help code example to use imagelists, view styles in a combo box

by Rick Dickason Email:

Download Details
FTP  download also available
CDN Login Required to Download. (You will be redirected to the login page if you click on the Download Link)
To download this, you must have registered:
A free membership

For Delphi, Version 11.0  to 11.0 484 downloads
Copyright: No significant restrictions

Size: 51,624 bytes
Updated on Wed, 03 Oct 2007 11:54:30 GMT
Originally uploaded on Wed, 03 Oct 2007 11:53:13 GMT
SHA1 Hash: 8CDB7A8BF98D7FC27466A673B128B0224B52BB8F
MD5 Hash: D4CBFFD69E6C071D56824425F68B2CB3

    Explore the files in this upload

This example requires a TListView, a TImageList and a TComboBox. You will need to double click the image list and add several images to the image list prior to running the project. You can use *.bmp or *.ico files from the \Images\Icons directory. During the form’s OnCreate event handler, items for the List View control are created for each image in the Image List and the ImageIndex is assigned
the number of the image within the ImageList. Two columns are created so that when ViewStyle is vsReport, you will have columns to view. Also within the form’s OnCreate event handler assign the ComboBox each of the four TViewStyle constants to the Items’ Objects property. You could also simply code this within a series of OnClick event handlers as, for instance, ListView1.->ViewStyle := vsIcon.

   Latest Comments  View All Add New

Move mouse over comment to see the full text

Could not retrieve comments. Please try again later.

Server Response from: ETNACDC03