From def6be738e34d5ff5d4679a96d25c137aac31e31 Mon Sep 17 00:00:00 2001 From: Andrew Haines Date: Sun, 1 Feb 2015 09:37:07 -0500 Subject: Changes to allow modal windows to have owners. --- examples/gui/filedialog/filedialog.lpi | 22 +++++++++++++--------- examples/gui/filedialog/filedialog.lpr | 2 +- 2 files changed, 14 insertions(+), 10 deletions(-) (limited to 'examples/gui/filedialog') diff --git a/examples/gui/filedialog/filedialog.lpi b/examples/gui/filedialog/filedialog.lpi index 2291e3f1..359ca76e 100644 --- a/examples/gui/filedialog/filedialog.lpi +++ b/examples/gui/filedialog/filedialog.lpi @@ -1,7 +1,7 @@ - + - + @@ -9,11 +9,13 @@ - - + + + + @@ -34,16 +36,18 @@ - - + + + + + + - - + diff --git a/examples/gui/filedialog/filedialog.lpr b/examples/gui/filedialog/filedialog.lpr index e1dca3d7..7ea47bed 100644 --- a/examples/gui/filedialog/filedialog.lpr +++ b/examples/gui/filedialog/filedialog.lpr @@ -118,7 +118,7 @@ procedure TMainForm.btnOpenFileClick(Sender: TObject); var dlg: TfpgFileDialog; begin - dlg := TfpgFileDialog.Create(nil); + dlg := TfpgFileDialog.Create(Self); try // defines 3 filters (All Files, Object Pascal and Lazarus Project) dlg.Filter := 'All Files (*)|*|Object Pascal (*.pas;*.lpr;*.pp)|*.pas;*.lpr;*.pp|Lazarus Project (*.lpi)|*.lpi'; -- cgit v1.2.3-70-g09d2