TImageEnMView.TextColumns
Declaration
property TextColumns : TIEImageEnMViewCols;
Description
Provides an alternative method to specify
DefaultTopText,
DefaultBottomText,
DefaultInfoText without needing to specify the text position (first available position will be used).
Read
TextColumns to return a set of the text columns in use.
Set
TextColumns (with up to three items) to apply a selection of text columns.
Generally this is used when
Style is set to
iemsColumns.
Note:
◼If more than three columns are specified, older columns will be removed in favor of newer ones
◼The width of the columns is specified by is set by
TextColumnWidths.
// Hide the "File Extension" column (will work even if column is not visible)
IEFolderMView.TextColumns := IEFolderMView.TextColumns - [iedtFileExt];
// Show the "File Extension" column (will work even if column is already visible)
IEFolderMView.TextColumns := IEFolderMView.TextColumns + [iedtFileExt];
// Show checked status for "File Edit Date" column
ShowEditDateColumns.Checked := iedtFileEditDate in IEFolderMView.TextColumns;
// Toggle display of the "File Edit Date" column
procedure TForm1.ShowEditDateColumnsClick(Sender: TObject);
begin
if iedtFileEditDate in IEFolderMView.TextColumns then
IEFolderMView.TextColumns := IEFolderMView.TextColumns - [iedtFileEditDate]
else
IEFolderMView.TextColumns := IEFolderMView.TextColumns + [iedtFileEditDate];
end;
| Demos\Multi\Explorer\ExplorerDemo.dpr |
See Also
◼TextBlockWidth◼Style◼TextColumns