Browse Source

* Added the global variable CustomApplication. If this variable is set
when a Application-object is initialized, other units can access this
Application-object without knowing its exact type or unit it is
defined in.

git-svn-id: trunk@13747 -

joost 16 years ago
parent
commit
45b20dac4e
1 changed files with 2 additions and 0 deletions
  1. 2 0
      packages/fcl-base/src/custapp.pp

+ 2 - 0
packages/fcl-base/src/custapp.pp

@@ -80,6 +80,8 @@ Type
     Property StopOnException : Boolean Read FStopOnException Write FStopOnException;
     Property StopOnException : Boolean Read FStopOnException Write FStopOnException;
   end;
   end;
 
 
+var CustomApplication : TCustomApplication = nil;
+
 Implementation
 Implementation
 
 
 {$if defined(darwin) and (defined(cpu386) or defined(cpupowerpc32))}
 {$if defined(darwin) and (defined(cpu386) or defined(cpupowerpc32))}