ImageEn, unit iexMetaHelpers

TListViewHelper.NewListForIPTC

TListViewHelper.NewListForIPTC


Declaration

procedure NewListForIPTC;


Description

Set up a TListView for specifying values for IPTC fields (e.g. to a file without IPTC fields presently).
Two columns will be added with the left one containing property descriptions and the right blank for field entry. The headings will read "Name" and "Value".

Notes:
- A standard TListView does not permit editing of subitems, so either download a TListView descendent that allows editing, or search for code snippets for "Edit Subitems TListView"
- Call InitializeList before NewListForIPTC to automatically assign the optimal layout to the TListView


Example

// Display a TListView allowing user to add IPTC data
procedure TIPTCForm.FormCreate(Sender: TObject);
begin
  // Fix List layout
  MyIPTCListView.InitializeList;

  // Add fields to List
  MyIPTCListView.NewListForIPTC;
end;