blob: b2f84a6f7bf852ef72d05762eb299603965d629e (
plain)
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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
|
unit frmCompilerOpt;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, fpgui;
type
{ TCompilerOptForm }
TCompilerOptForm = Class(TForm)
private
FGroupBoxStyle: TStyle;
public
constructor Create(AOwner: TComponent); override;
destructor Destroy; override;
procedure CompOptFormOnActivate(Sender: TObject);
procedure SmartLinkClick(Sender: TObject);
published
procedure btnCloseClick(Sender: TObject);
Box1: TBoxLayout;
Box2: TBoxLayout;
Box3: TBoxLayout;
Box4: TBoxLayout;
Box5: TBoxLayout;
Box6: TBoxLayout;
btnOK, btnCancel, btnShowOp, btnTest, btnLoadSave : TButton;
grpBox1: TGroupBox;
grpBox1VBox1: TBoxLayout;
cbSmartLink: TCheckbox;
grpBox2: TGroupBox;
grpBox2VBox1: TBoxLayout;
rbIO: TRadioButton;
rbOverflow: TRadioButton;
rbRange: TRadioButton;
rbStack: TRadioButton;
grpBox3: TGroupBox;
grpBox3VBox1: TBoxLayout;
edHeapSize: TEdit;
grpBox4: TGroupBox;
grpBox4VBox1: TBoxLayout;
rbNormal: TRadioButton;
rbFaster: TRadioButton;
rbSmaller: TRadioButton;
grpBox5: TGroupBox;
grpBox5VBox1: TBoxLayout;
lblTarget1: TLabel;
lblTarget2: TLabel;
lblTarget3: TLabel;
grpBox6: TGroupBox;
grpBox6VBox1: TBoxLayout;
rbLevel0: TRadioButton;
rbLevel1: TRadioButton;
rbLevel2: TRadioButton;
rbLevel3: TRadioButton;
rbKeepVarReg: TCheckbox;
rbUncOpt: TCheckbox;
end;
var
CompOpt: TCompilerOptForm;
implementation
uses
OpenSoftStyle;
{ TCompilerOptForm }
constructor TCompilerOptForm.Create(AOwner: TComponent);
begin
inherited Create(AOwner);
// FGroupBoxStyle := TOpenSoftStyle.Create(Application.Display);
// Style := FGroupBoxStyle;
// Style := FOpenSoftStyle;
OnActivate := @CompOptFormOnActivate;
end;
destructor TCompilerOptForm.Destroy;
begin
FGroupBoxStyle.Free;
inherited Destroy;
end;
procedure TCompilerOptForm.CompOptFormOnActivate(Sender: TObject);
begin
cbSmartLink.OnClick := @SmartLinkClick;
{
grpBox1.CanExpandHeight := True;
grpBox1VBox1.CanExpandHeight := True;
grpBox1.CanExpandWidth := True;
grpBox2.CanExpandWidth := True;
grpBox3.CanExpandWidth := True;
grpBox4.CanExpandWidth := True;
grpBox5.CanExpandWidth := True;
grpBox6.CanExpandWidth := True;
grpBox6VBox1.CanExpandWidth := True;
}
grpBox5VBox1.VertAlign := vertFill;
// grpBox1.Style := FGroupBoxStyle;
// grpBox6.Style := FGroupBoxStyle;
end;
procedure TCompilerOptForm.SmartLinkClick(Sender: TObject);
begin
grpBox1.Style := nil;
self.Redraw;
// grpBox1.Redraw;
end;
procedure TCompilerOptForm.btnCloseClick(Sender: TObject);
begin
Close;
end;
initialization
finalization
CompOpt.Free;
end.
|