File: lr_srch.pas

package info (click to toggle)
lazarus 2.0.0%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 214,460 kB
  • sloc: pascal: 1,862,622; xml: 265,709; cpp: 56,595; sh: 3,008; java: 609; makefile: 535; perl: 297; sql: 222; ansic: 137
file content (74 lines) | stat: -rw-r--r-- 1,670 bytes parent folder | download | duplicates (10)
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

{*****************************************}
{                                         }
{             FastReport v2.3             }
{              Search dialog              }
{                                         }
{  Copyright (c) 1998-99 by Tzyganenko A. }
{                                         }
{*****************************************}

unit LR_Srch;

interface

{$I LR_Vers.inc}

uses
  Classes, SysUtils, LResources,Forms, Controls, Graphics, Dialogs,
  StdCtrls,Buttons, ButtonPanel, ExtCtrls, LR_Const;

type

  { TfrPreviewSearchForm }

  TfrPreviewSearchForm = class(TForm)
    ButtonPanel1: TButtonPanel;
    GroupBox1: TCheckGroup;
    Label1: TLabel;
    Edit1: TEdit;
    Label2: TLabel;
    GroupBox2: TRadioGroup;
    procedure FormActivate(Sender: TObject);
    procedure FormCreate(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  frPreviewSearchForm: TfrPreviewSearchForm;

implementation

{$R *.lfm}

procedure TfrPreviewSearchForm.FormActivate(Sender: TObject);
begin
  Edit1.SetFocus;
  Edit1.SelectAll;
end;

procedure TfrPreviewSearchForm.FormCreate(Sender: TObject);
begin
  Caption := sFindTextCaption;
  Label1.Caption := sFindTextText;

  GroupBox1.Caption := sFindTextOptions;
  GroupBox1.Items.Clear;
  GroupBox1.Items.Add(sFindTextCase);
  //CB1.Caption := sFindTextCase;

  GroupBox2.Caption := sFindTextOrg;
  GroupBox2.Items.Clear;
  GroupBox2.Items.Add(sFindTextFirstPg);
  GroupBox2.Items.Add(sFindTextCurrentPg);
  //RB1.Caption := sFindTextFirstPg;
  //RB2.Caption := sFindTextCurrentPg;
  //Button1.Caption := sOk;
  //Button2.Caption := sCancel;
end;

end.