-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsrccfgfm.pas
74 lines (56 loc) · 1.4 KB
/
srccfgfm.pas
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
unit SrcCfgFm;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, Forms, Controls, Graphics, Dialogs, StdCtrls, DBCtrls,
Buttons;
type
{ TChartSourceEditForm }
TChartSourceEditForm = class(TForm)
BitBtn1: TBitBtn;
BitBtn2: TBitBtn;
XFieldComboBox: TComboBox;
YFieldComboBox: TComboBox;
ColorFieldComboBox: TComboBox;
TextFieldComboBox: TComboBox;
Label1: TLabel;
Label2: TLabel;
Label3: TLabel;
Label4: TLabel;
procedure FormCreate(Sender: TObject);
private
function GetFieldColor: string;
function GetFieldText: string;
function GetFieldX: string;
function GetFieldY: string;
public
property FieldX: string read GetFieldX;
property FieldY: string read GetFieldY;
property FieldColor: string read GetFieldColor;
property FieldText: string read GetFieldText;
end;
var
ChartSourceEditForm: TChartSourceEditForm;
implementation
{$R *.lfm}
{ TChartSourceEditForm }
procedure TChartSourceEditForm.FormCreate(Sender: TObject);
begin
end;
function TChartSourceEditForm.GetFieldColor: string;
begin
Result := ColorFieldComboBox.Text;
end;
function TChartSourceEditForm.GetFieldText: string;
begin
Result := TextFieldComboBox.Text;
end;
function TChartSourceEditForm.GetFieldX: string;
begin
Result := XFieldComboBox.Text;
end;
function TChartSourceEditForm.GetFieldY: string;
begin
Result := YFieldComboBox.Text;
end;
end.