Changeset 114 for branches/generator/Forms/UFormMain.pas
- Timestamp:
- Nov 27, 2017, 9:08:54 AM (7 years ago)
- Location:
- branches/generator
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/generator
-
Property svn:ignore
set to
generator.exe
generator.lps
lib
-
Property svn:ignore
set to
-
branches/generator/Forms/UFormMain.pas
r111 r114 7 7 uses 8 8 Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, StdCtrls, 9 Menus, ActnList ;9 Menus, ActnList, ComCtrls, UPersistentForm; 10 10 11 11 type … … 19 19 ARules: TAction; 20 20 ActionList1: TActionList; 21 CoolBar1: TCoolBar; 21 22 MainMenu1: TMainMenu; 22 23 MemoBNF: TMemo; … … 30 31 OpenDialog1: TOpenDialog; 31 32 SaveDialog1: TSaveDialog; 33 ToolBar1: TToolBar; 34 ToolButton1: TToolButton; 32 35 procedure AExitExecute(Sender: TObject); 33 36 procedure AOpenExecute(Sender: TObject); 34 37 procedure ARulesExecute(Sender: TObject); 35 38 procedure ASaveAsExecute(Sender: TObject); 39 procedure FormClose(Sender: TObject; var CloseAction: TCloseAction); 36 40 procedure FormShow(Sender: TObject); 37 41 private … … 69 73 end; 70 74 75 procedure TFormMain.FormClose(Sender: TObject; var CloseAction: TCloseAction); 76 begin 77 Core.PersistentForm1.Save(Self); 78 end; 79 71 80 procedure TFormMain.FormShow(Sender: TObject); 72 81 begin 82 Core.PersistentForm1.Load(Self, True); 73 83 MemoBNF.Lines.Text := Core.Grammer.GetBNF; 74 84 end;
Note:
See TracChangeset
for help on using the changeset viewer.