summaryrefslogtreecommitdiff
path: root/examples/gui/filedialog/filedialog.lpr
diff options
context:
space:
mode:
authorgraemeg <graemeg@ae50a9b5-8222-0410-bf8d-8a13f76226bf>2007-08-22 08:06:44 +0000
committergraemeg <graemeg@ae50a9b5-8222-0410-bf8d-8a13f76226bf>2007-08-22 08:06:44 +0000
commit9dcbacc1b11c874d3e1ec3ee864418478ec9e00e (patch)
treed26363fb24ad045e9c7a08a0e0a3848fc6ea1ecc /examples/gui/filedialog/filedialog.lpr
parent7fa36a99aa445bde5cbb9435d34ba1e400dd9413 (diff)
downloadfpGUI-9dcbacc1b11c874d3e1ec3ee864418478ec9e00e.tar.xz
* Minor improvements to the File Dialog.
* Added some documenation comments explaining the File Dialog Filters property. * Extended the FileDialog example using custom Filters.
Diffstat (limited to 'examples/gui/filedialog/filedialog.lpr')
-rw-r--r--examples/gui/filedialog/filedialog.lpr1
1 files changed, 1 insertions, 0 deletions
diff --git a/examples/gui/filedialog/filedialog.lpr b/examples/gui/filedialog/filedialog.lpr
index a5ff4d2a..d7b1f176 100644
--- a/examples/gui/filedialog/filedialog.lpr
+++ b/examples/gui/filedialog/filedialog.lpr
@@ -42,6 +42,7 @@ var
begin
dlg := TfpgFileDialog.Create(nil);
try
+ dlg.Filter := 'All Files (*)|*|Object Pascal (*.pas;*.lpr;*.pp)|*.pas;*.lpr;*.pp|Lazarus Project (*.lpi)|*.lpi';
if dlg.RunOpenFile then
edFilename.Text := dlg.FileName;
finally