Ignore:
Timestamp:
Nov 27, 2017, 9:08:54 AM (7 years ago)
Author:
chronos
Message:
  • Added: Common and TemplateGenerics packages.
  • Added: Remember main and rules form dimensions.
Location:
branches/generator
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/generator

    • Property svn:ignore set to
      generator.exe
      generator.lps
      lib
  • branches/generator/Forms/UFormMain.pas

    r111 r114  
    77uses
    88  Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, StdCtrls,
    9   Menus, ActnList;
     9  Menus, ActnList, ComCtrls, UPersistentForm;
    1010
    1111type
     
    1919    ARules: TAction;
    2020    ActionList1: TActionList;
     21    CoolBar1: TCoolBar;
    2122    MainMenu1: TMainMenu;
    2223    MemoBNF: TMemo;
     
    3031    OpenDialog1: TOpenDialog;
    3132    SaveDialog1: TSaveDialog;
     33    ToolBar1: TToolBar;
     34    ToolButton1: TToolButton;
    3235    procedure AExitExecute(Sender: TObject);
    3336    procedure AOpenExecute(Sender: TObject);
    3437    procedure ARulesExecute(Sender: TObject);
    3538    procedure ASaveAsExecute(Sender: TObject);
     39    procedure FormClose(Sender: TObject; var CloseAction: TCloseAction);
    3640    procedure FormShow(Sender: TObject);
    3741  private
     
    6973end;
    7074
     75procedure TFormMain.FormClose(Sender: TObject; var CloseAction: TCloseAction);
     76begin
     77  Core.PersistentForm1.Save(Self);
     78end;
     79
    7180procedure TFormMain.FormShow(Sender: TObject);
    7281begin
     82  Core.PersistentForm1.Load(Self, True);
    7383  MemoBNF.Lines.Text := Core.Grammer.GetBNF;
    7484end;
Note: See TracChangeset for help on using the changeset viewer.