forked from MGuffin/xTranslator
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTESVT_ToolBox.pas
More file actions
59 lines (49 loc) · 1.56 KB
/
TESVT_ToolBox.pas
File metadata and controls
59 lines (49 loc) · 1.56 KB
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
unit TESVT_ToolBox;
interface
uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, ButtonGroup, StdCtrls, TESVT_Ressources, TESVT_StringsStatus;
type
TForm16 = class(TForm)
ButtonGroup1: TButtonGroup;
Button1: TButton;
Button2: TButton;
procedure ButtonGroup1ButtonClicked(Sender: TObject; Index: Integer);
procedure FormCreate(Sender: TObject);
procedure Button2Click(Sender: TObject);
private
{ Déclarations privées }
public
toolID: Integer;
end;
var
Form16: TForm16;
implementation
uses TESVT_ToolboxOptions;
{$R *.dfm}
procedure TForm16.Button2Click(Sender: TObject);
begin
form17 := tform17.create(self);
form17.label1.Caption:= getres('WordExceptionInfo');
form17.Memo1.lines.Text := lWordExceptionList.Text;
form17.showmodal;
if form17.modalResult = mrOk then
lWordExceptionList.Text := form17.Memo1.lines.Text;
form17.free;
end;
procedure TForm16.ButtonGroup1ButtonClicked(Sender: TObject; Index: Integer);
begin
modalResult := mrOk;
toolID := index;
end;
procedure TForm16.FormCreate(Sender: TObject);
begin
toolID := -1;
Init_caption(self);
ButtonGroup1.Items[0].Caption := getRes('UppercaseAll');
ButtonGroup1.Items[1].Caption := getRes('LowerCaseAll');
ButtonGroup1.Items[2].Caption := getRes('UpperCaseFirstWord');
ButtonGroup1.Items[3].Caption := getRes('UpperCaseFirstCharEachWord');
ButtonGroup1.Items[4].Caption := getRes('FixAlias3');
ButtonGroup1.Items[5].Caption := getRes('AddHeader');
ButtonGroup1.Items[6].Caption := getRes('TrimString');
end;
end.