ImageEn, unit iexMetaHelpers |
|
TStringGridHelper.NewGridForExif
Declaration
procedure NewGridForExif(bReadOnly : Boolean = False);
Description
Set up a TStringGrid for specifying values for EXIF fields (e.g. to a file without EXIF fields presently).
Two columns will be added with the left one containing property descriptions (using
EXIF_FieldDescription) 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
NewGridForExif to automatically assign the optimal layout to the grid.
Example
// Display a grid allowing user to add EXIF data
procedure TExifForm.FormCreate(Sender: TObject);
begin
// Fix grid layout
MyExifStringGrid.InitializeGrid;
// Add fields to grid
MyExifStringGrid.NewGridForExif;
end;