Changeset 73 for trunk/UCore.pas


Ignore:
Timestamp:
Oct 27, 2016, 3:00:47 PM (8 years ago)
Author:
chronos
Message:
  • Added: Remember position and size of main form after close of application.
  • Modified: Updated Common package to latest version.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/UCore.pas

    r72 r73  
    77uses
    88  Classes, SysUtils, FileUtil, UApplicationInfo, ULastOpenedList, UProject,
    9   UCoolTranslator, UTarget, URegistry, Registry, Graphics, UScaleDPI;
     9  UCoolTranslator, UTarget, URegistry, Registry, Graphics, UScaleDPI,
     10  UPersistentForm;
    1011
    1112type
     
    1718    CoolTranslator1: TCoolTranslator;
    1819    LastOpenedList: TLastOpenedList;
     20    PersistentForm1: TPersistentForm;
    1921    procedure DataModuleCreate(Sender: TObject);
    2022    procedure DataModuleDestroy(Sender: TObject);
     
    9395  LastOpenedList.LoadFromRegistry(RegContext(Root, Key));
    9496  Targets.LoadFromRegistry(Root, Key);
     97  PersistentForm1.RegistryContext := RegContext(Root, Key + '\Forms');
    9598end;
    9699
Note: See TracChangeset for help on using the changeset viewer.