home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2001 October
/
Chip_2001-10_cd1.bin
/
zkuste
/
delphi
/
kolekce
/
d6
/
FRCLX.ZIP
/
SOURCE
/
FR_AttrE.pas
< prev
next >
Wrap
Pascal/Delphi Source File
|
2001-07-03
|
2KB
|
80 lines
{******************************************}
{ }
{ FastReport CLX v2.4 }
{ Tag editor }
{ }
{ Copyright (c) 1998-2001 by Tzyganenko A. }
{ }
{******************************************}
unit FR_AttrE;
interface
{$I FR.inc}
uses
SysUtils, Classes, QGraphics, QControls, QForms, QDialogs,
QStdCtrls, FR_Class, FR_Ctrls, FR_Const;
type
TfrAttrEditorForm = class(TForm)
Button1: TButton;
Button2: TButton;
GB1: TGroupBox;
Edit1: TfrComboEdit;
procedure frSpeedButton1Click(Sender: TObject);
procedure FormCreate(Sender: TObject);
private
{ Private declarations }
procedure Localize;
public
{ Public declarations }
procedure ShowEditor(t: TfrView);
end;
implementation
{$R *.xfm}
uses FR_Expr, FR_Utils;
procedure TfrAttrEditorForm.ShowEditor(t: TfrView);
begin
Edit1.Text := t.Tag;
if ShowModal = mrOk then
begin
frDesigner.BeforeChange;
t.Tag := Edit1.Text;
end;
end;
procedure TfrAttrEditorForm.frSpeedButton1Click(Sender: TObject);
begin
with TfrExprForm.Create(nil) do
begin
if ShowModal = mrOk then
Edit1.SelText := ExprMemo.Text;
Free;
end;
end;
procedure TfrAttrEditorForm.Localize;
begin
Caption := S53740;
Edit1.ButtonHint := S53575;
Button1.Caption := (SOk);
Button2.Caption := (SCancel);
end;
procedure TfrAttrEditorForm.FormCreate(Sender: TObject);
begin
Localize;
end;
end.