-
Notifications
You must be signed in to change notification settings - Fork 20
Expand file tree
/
Copy pathFindDlg.pas
More file actions
42 lines (33 loc) · 774 Bytes
/
Copy pathFindDlg.pas
File metadata and controls
42 lines (33 loc) · 774 Bytes
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
unit FindDlg;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics,
Controls, Forms, Dialogs, StdCtrls, ExtCtrls;
type
TFFindDlg=class(TForm)
OKBtn: TButton;
CancelBtn: TButton;
Bevel1: TBevel;
cbText: TComboBox;
Label1: TLabel;
procedure FormShow(Sender : TObject);
procedure cbTextEnter(Sender : TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
FFindDlg:TFFindDlg;
implementation
{$R *.DFM}
procedure TFFindDlg.FormShow(Sender : TObject);
begin
if cbText.Items.Count<>0 then cbText.Text := cbText.Items[0];
ActiveControl := cbText;
end;
procedure TFFindDlg.cbTextEnter(Sender : TObject);
begin
cbText.SelectAll;
end;
end.