RAD Studio VCL Reference
|
Determines the file type masks (filters) available in the dialog.
property FileTypes: TFileTypeItems;
__property TFileTypeItems FileTypes;
FileTypes is an instance of TFileTypeItems containing a list of file types, each of which is an instance of TFileTypeItem.
To add file types to a dialog, get the TFileTypeItems instance from FileTypes and use the TFileTypeItems.Add method as in this sample:
with FileOpenDialog1.FileTypes.Add do begin DisplayName := ‘All Files’; FileMask := ‘*.*’; end;
Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
|
What do you think about this topic? Send feedback!
|