summaryrefslogtreecommitdiff
path: root/examples/gui/filedialog
diff options
context:
space:
mode:
authorAndrew Haines <andrewd207@aol.com>2015-02-01 23:04:24 -0500
committerAndrew Haines <andrewd207@aol.com>2015-02-01 23:04:24 -0500
commitc7fc66e330b4665843e195436e7e5095de5dbdfc (patch)
treeae93f9c8ab2eeb0fcb4722669237b9955e03bae6 /examples/gui/filedialog
parentfd68cfe060b6c51ef515e61931474e1a088e1ca9 (diff)
parentdef6be738e34d5ff5d4679a96d25c137aac31e31 (diff)
downloadfpGUI-c7fc66e330b4665843e195436e7e5095de5dbdfc.tar.xz
Merge branch 'topleveldialogs' into develop
Diffstat (limited to 'examples/gui/filedialog')
-rw-r--r--examples/gui/filedialog/filedialog.lpi22
-rw-r--r--examples/gui/filedialog/filedialog.lpr2
2 files changed, 14 insertions, 10 deletions
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 @@
-<?xml version="1.0"?>
+<?xml version="1.0" encoding="UTF-8"?>
<CONFIG>
<ProjectOptions>
- <Version Value="7"/>
+ <Version Value="9"/>
<General>
<Flags>
<SaveOnlyProjectUnits Value="True"/>
@@ -9,11 +9,13 @@
</Flags>
<SessionStorage Value="InProjectDir"/>
<MainUnit Value="0"/>
- <TargetFileExt Value=""/>
</General>
<VersionInfo>
- <ProjectVersion Value=""/>
+ <StringTable ProductVersion=""/>
</VersionInfo>
+ <BuildModes Count="1">
+ <Item1 Name="default" Default="True"/>
+ </BuildModes>
<PublishOptions>
<Version Value="2"/>
<IncludeFileFilter Value="*.(pas|pp|inc|lfm|lpr|lrs|lpi|lpk|sh|xml)"/>
@@ -34,16 +36,18 @@
<Unit0>
<Filename Value="filedialog.lpr"/>
<IsPartOfProject Value="True"/>
- <UnitName Value="filedialog"/>
</Unit0>
</Units>
</ProjectOptions>
<CompilerOptions>
- <Version Value="8"/>
+ <Version Value="11"/>
+ <Parsing>
+ <SyntaxOptions>
+ <UseAnsiStrings Value="False"/>
+ </SyntaxOptions>
+ </Parsing>
<Other>
- <CustomOptions Value="-FUunits
-"/>
- <CompilerPath Value="$(CompPath)"/>
+ <CustomOptions Value="-FUunits"/>
</Other>
</CompilerOptions>
</CONFIG>
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';