-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathControlSearchFrm.pas
More file actions
64 lines (54 loc) · 1.51 KB
/
ControlSearchFrm.pas
File metadata and controls
64 lines (54 loc) · 1.51 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
60
61
62
63
64
unit ControlSearchFrm;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.ComCtrls, Vcl.ExtCtrls, Vcl.StdCtrls,
ControlSearchLib;
type
TControlSearchDlg = class(TForm)
Panel1: TPanel;
PageControl1: TPageControl;
TabSheet1: TTabSheet;
TabSheet2: TTabSheet;
CheckBox1: TCheckBox;
CheckBox2: TCheckBox;
Edit1: TEdit;
Button1: TButton;
Edit2: TEdit;
GroupBox1: TGroupBox;
CheckBox3: TCheckBox;
ComboBox1: TComboBox;
GroupBox2: TGroupBox;
Edit3: TEdit;
Label1: TLabel;
TabSheet3: TTabSheet;
Label2: TLabel;
RadioGroup1: TRadioGroup;
procedure FormCreate(Sender: TObject);
procedure Button1Click(Sender: TObject);
private
{ Private-Deklarationen }
controlSearch: TControlSearch;
public
{ Public-Deklarationen }
end;
var
ControlSearchDlg: TControlSearchDlg;
implementation
{$R *.dfm}
procedure TControlSearchDlg.Button1Click(Sender: TObject);
begin
controlSearch.Search(Edit1.Text);
end;
procedure TControlSearchDlg.FormCreate(Sender: TObject);
begin
TabSheet2.TabVisible := false;
controlSearch := TControlSearch.Create;
controlSearch.Init(PageControl1);
controlSearch.FoundControlStyle.Font.Style := [fsBold];
controlSearch.FoundControlStyle.Font.Color := clGreen;
controlSearch.FoundControlStyle.Color := clRed;
controlSearch.AddTag(Edit2, 'Name');
controlSearch.AddTag(CheckBox2, 'Benachrichtigungen');
end;
end.