summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGraeme Geldenhuys <graeme@mastermaths.co.za>2012-04-04 23:51:04 +0200
committerGraeme Geldenhuys <graeme@mastermaths.co.za>2012-04-04 23:51:04 +0200
commit67af20d65f832c737417792199d3675ad5e0bb70 (patch)
tree690ac12c5f2a4797c6efbadcdf6384be876e35fc
parente6a768a04501ee0d08f90bd92f0e7d7de81e3ff1 (diff)
downloadfpGUI-67af20d65f832c737417792199d3675ad5e0bb70.tar.xz
DND Example now sets AppType in code, not via compiler option.
-rw-r--r--examples/gui/drag_n_drop/dndexample.lpi8
-rw-r--r--examples/gui/drag_n_drop/dndexample.lpr1
2 files changed, 2 insertions, 7 deletions
diff --git a/examples/gui/drag_n_drop/dndexample.lpi b/examples/gui/drag_n_drop/dndexample.lpi
index f2ed8c97..758b5887 100644
--- a/examples/gui/drag_n_drop/dndexample.lpi
+++ b/examples/gui/drag_n_drop/dndexample.lpi
@@ -51,6 +51,7 @@
<Filename Value="dndexample"/>
</Target>
<SearchPaths>
+ <IncludeFiles Value="$(ProjOutDir)"/>
<UnitOutputDirectory Value="units/$(TargetCPU)-$(TargetOS)"/>
</SearchPaths>
<Parsing>
@@ -61,13 +62,6 @@
<UseAnsiStrings Value="False"/>
</SyntaxOptions>
</Parsing>
- <Linking>
- <Options>
- <Win32>
- <GraphicApplication Value="True"/>
- </Win32>
- </Options>
- </Linking>
<Other>
<CompilerMessages>
<UseMsgFile Value="True"/>
diff --git a/examples/gui/drag_n_drop/dndexample.lpr b/examples/gui/drag_n_drop/dndexample.lpr
index e134fb74..13dda563 100644
--- a/examples/gui/drag_n_drop/dndexample.lpr
+++ b/examples/gui/drag_n_drop/dndexample.lpr
@@ -1,6 +1,7 @@
program dndexample;
{$mode objfpc}{$H+}
+{$IFDEF MSWINDOWS} {$apptype gui} {$ENDIF}
uses
{$IFDEF UNIX}{$IFDEF UseCThreads}