source: trunk/Forms/UFormTable.pas

Last change on this file was 28, checked in by chronos, 20 months ago
  • Modified: Do not create all application forms at initialization phase but dynamically.
File size: 694 bytes
Line 
1unit UFormTable;
2
3interface
4
5uses
6 Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, StdCtrls,
7 UDatabase;
8
9type
10
11 { TFormTable }
12
13 TFormTable = class(TForm)
14 ButtonOk: TButton;
15 ButtonCancel: TButton;
16 EditName: TEdit;
17 EditCaption: TEdit;
18 Label1: TLabel;
19 Label2: TLabel;
20 public
21 procedure Load(Table: TTable);
22 procedure Save(Table: TTable);
23 end;
24
25
26implementation
27
28{$R *.lfm}
29
30{ TFormTable }
31
32procedure TFormTable.Load(Table: TTable);
33begin
34 EditName.Text := Table.Name;
35 EditCaption.Text := Table.Caption;
36end;
37
38procedure TFormTable.Save(Table: TTable);
39begin
40 Table.Name := EditName.Text;
41 Table.Caption := EditCaption.Text;
42end;
43
44end.
45
Note: See TracBrowser for help on using the repository browser.