ImageEn, unit iexMetaHelpers |
|
TStringGridHelper.NewGridForIPTC
Declaration
procedure NewGridForIPTC(bReadOnly : Boolean = False);
Description
Set up a TStringGrid 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. If the grid has a fixed row it will be given a heading of "Name" and "Value".
If
bReadOnly is true the right-column will not be editable.
Note: You may wish to call
InitializeGrid before
NewGridForIPTC to automatically assign the optimal layout to the grid.
Example
// Display a grid allowing user to add IPTC data
procedure TIPTCForm.FormCreate(Sender: TObject);
begin
// Fix grid layout
MyIPTCStringGrid.InitializeGrid;
// Add fields to grid
MyIPTCtringGrid.NewGridForIPTC;
end;