Watch, Follow, &
Connect with Us

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

ID: 13331, Adding Columns to TListViews

by Frank Hirka Email: Anonymous

Download Details
FTP  download also available 0 bytes
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 1.0  to 4.0 19 downloads
Copyright: No significant restrictions

Size: 0 bytes
Updated on Mon, 17 May 1999 00:00:00 GMT
Originally uploaded on Mon, 17 May 1999 00:00:00 GMT
This Procedure adds Columns to a TListView
Where a TListView already has columns, this procedure allows the addition of extra columns.
If fDeleteCols is TRUE the ALL columns are deleted.

fListView : Listview name
fColCaption : column caption to be added (the name of the column)
fColWidth : Column Width -1 := max width; -2 := width of caption (set the column to the required width or max width or caption width)
fDeleteCols : delete current columns if true

Procedure LVAddCol(fListView: TListView; fColCaption: string; fColWidth: integer; fDeleteCols: Boolean);
if fDeleteCols then
Tlistview(fListView).Columns.Add.Caption := fColCaption;
Tlistview(fListView).Columns.Items[Tlistview(fListView).Columns.Count - 1].Width := fColWidth;

   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