-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.pas
111 lines (91 loc) · 2.42 KB
/
setup.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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
unit setup;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, ComCtrls,
ExtCtrls, Menus, Buttons, StdCtrls, ColorBox, types;
type
{ Tparam }
Tparam = class(TForm)
Bevel1: TBevel;
back_color: TColorButton;
font_color: TColorButton;
kegel_size: TComboBox;
GroupBox1: TGroupBox;
GroupBox2: TGroupBox;
kegel_name: TComboBox;
Label1: TLabel;
Label2: TLabel;
Label3: TLabel;
Label4: TLabel;
Label5: TLabel;
Label6: TLabel;
Label7: TLabel;
Label8: TLabel;
Label9: TLabel;
MainMenu1: TMainMenu;
MenuItem1: TMenuItem;
MenuItem2: TMenuItem;
MenuItem3: TMenuItem;
MenuItem4: TMenuItem;
MenuItem5: TMenuItem;
PageControl1: TPageControl;
x_term_prm: TPanel;
SB: TSpeedButton;
SI: TSpeedButton;
TabSheet1: TTabSheet;
TabSheet2: TTabSheet;
TabSheet3: TTabSheet;
TabSheet4: TTabSheet;
procedure back_colorColorChanged(Sender: TObject);
procedure font_colorColorChanged(Sender: TObject);
procedure kegel_nameChange(Sender: TObject);
procedure kegel_sizeChange(Sender: TObject);
procedure x_term_prmClick(Sender: TObject);
procedure SBClick(Sender: TObject);
private
{ private declarations }
public
{ public declarations }
end;
var
param: Tparam;
implementation
uses
eterm;
{$R *.lfm}
//должно настраиваться цвет шрифта команд памяти
//формат команд...
//М/Б цвета логов
//М/Б цветаассемблера
//цвет фона консоли шрифт/цвет консоли ..
{ Tparam }
procedure Tparam.SBClick(Sender: TObject);
begin
x_term_prm.Font.Bold:=SB.Down;
x_term_prm.Font.Italic:=SI.Down;
end;
procedure Tparam.kegel_sizeChange(Sender: TObject);
begin
x_term_prm.Font.Size:=strtoint(kegel_size.Text);
end;
procedure Tparam.x_term_prmClick(Sender: TObject);
begin
//
term.frame.Canvas.Font:=x_term_prm.Font;
term.frame.Canvas.Brush.Color:=x_term_prm.Color;
term.frame.Canvas.Pen.Color:=term.frame.Canvas.Font.Color;
end;
procedure Tparam.kegel_nameChange(Sender: TObject);
begin
x_term_prm.Font.Name:=kegel_name.Text;
end;
procedure Tparam.font_colorColorChanged(Sender: TObject);
begin
x_term_prm.Font.Color:=font_color.ButtonColor;
end;
procedure Tparam.back_colorColorChanged(Sender: TObject);
begin
x_term_prm.Color:=back_color.ButtonColor;
end;
end.