Ignore:
Timestamp:
Dec 22, 2016, 6:01:41 PM (8 years ago)
Author:
chronos
Message:
  • Added: Remember forms dimensions.
  • Added: Remember recent opened files.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Forms/UFormNew.pas

    r26 r28  
    2626    SpinEditWidth: TSpinEdit;
    2727    SpinEditHeight: TSpinEdit;
     28    procedure FormClose(Sender: TObject; var CloseAction: TCloseAction);
    2829    procedure FormShow(Sender: TObject);
    2930    procedure SpinEditWidthChange(Sender: TObject);
     
    4041
    4142{$R *.lfm}
     43
     44uses
     45  UCore;
    4246
    4347{ TFormNew }
     
    5761  I: Integer;
    5862begin
     63  Core.PersistentForm1.Load(Self);
     64
    5965  ComboBoxColorFormat.Clear;
    6066  for I := 0 to ColorFormatManager.FormatCount - 1 do begin
     
    7177end;
    7278
     79procedure TFormNew.FormClose(Sender: TObject; var CloseAction: TCloseAction);
     80begin
     81  Core.PersistentForm1.Save(Self);
     82end;
     83
    7384end.
    7485
Note: See TracChangeset for help on using the changeset viewer.