source: trunk/ae/FindFormUnit.pas@ 454

Last change on this file since 454 was 454, checked in by ataylor, 3 years ago

Add AE (text editor) sources.

File size: 1.6 KB
Line 
1Unit FindFormUnit;
2
3Interface
4
5Uses
6 Classes, Forms, Graphics, Buttons, StdCtrls,
7 ACLLanguageUnit;
8
9Type
10 TFindForm = Class (TForm)
11 OKButton: TButton;
12 CancelButton: TButton;
13 TextToFindLabel: TLabel;
14 FromTopCheckBox: TCheckBox;
15 HelpButton: TButton;
16 TextToFindEdit: TEdit;
17 CaseSensitiveCheckBox: TCheckBox;
18 Procedure FindFormOnSetupShow (Sender: TObject);
19 Procedure OKButtonOnClick (Sender: TObject);
20 Procedure CancelButtonOnClick (Sender: TObject);
21 Procedure FindFormOnCreate (Sender: TObject);
22 Procedure FindFormOnShow (Sender: TObject);
23 Protected
24 Public
25 OnFindClicked: TNotifyEvent;
26 Procedure OnLanguageEvent( Language: TLanguageFile;
27 const Apply: boolean );
28 End;
29
30Var
31 FindForm: TFindForm;
32
33Implementation
34
35Uses
36 ControlsUtility;
37
38Procedure TFindForm.FindFormOnSetupShow (Sender: TObject);
39Begin
40 ScaleForm( self, 11, 16 );
41End;
42
43Procedure TFindForm.OKButtonOnClick (Sender: TObject);
44Begin
45 OnFindClicked( Sender );
46End;
47
48Procedure TFindForm.CancelButtonOnClick (Sender: TObject);
49Begin
50 Close;
51End;
52
53Procedure TFindForm.FindFormOnCreate (Sender: TObject);
54Begin
55 RegisterForLanguages( OnLanguageEvent );
56End;
57
58Procedure TFindForm.OnLanguageEvent( Language: TLanguageFile;
59 const Apply: boolean );
60begin
61 Language.LoadComponentLanguage( self, Apply );
62end;
63
64Procedure TFindForm.FindFormOnShow (Sender: TObject);
65Begin
66 OKButton.Default := true;
67 TextToFindEdit.Focus;
68End;
69
70Initialization
71 RegisterClasses ([TFindForm, TButton, TLabel, TEdit, TCheckBox]);
72End.
73
Note: See TracBrowser for help on using the repository browser.