52 lines
962 B
ObjectPascal
52 lines
962 B
ObjectPascal
|
unit frxConnItemEdit;
|
||
|
|
||
|
interface
|
||
|
|
||
|
{$I frx.inc}
|
||
|
|
||
|
uses
|
||
|
{$IFNDEF FPC}
|
||
|
Windows, Messages,
|
||
|
{$ENDIF}
|
||
|
SysUtils, Classes, Graphics, Controls, Forms,
|
||
|
Dialogs, StdCtrls, ExtCtrls, frxClass, frxBaseForm;
|
||
|
|
||
|
type
|
||
|
TfrxConnectionItemEdit = class(TfrxBaseForm)
|
||
|
Panel1: TPanel;
|
||
|
ConnL: TLabel;
|
||
|
ConnE: TEdit;
|
||
|
ConnB: TButton;
|
||
|
OkB: TButton;
|
||
|
CancelB: TButton;
|
||
|
NameL: TLabel;
|
||
|
NameE: TEdit;
|
||
|
GroupBox1: TGroupBox;
|
||
|
SystemRB: TRadioButton;
|
||
|
UserRB: TRadioButton;
|
||
|
procedure ConnBClick(Sender: TObject);
|
||
|
private
|
||
|
{ Private declarations }
|
||
|
public
|
||
|
{ Public declarations }
|
||
|
Report: TfrxReport;
|
||
|
end;
|
||
|
|
||
|
var
|
||
|
frxConnectionItemEdit: TfrxConnectionItemEdit;
|
||
|
|
||
|
implementation
|
||
|
{$IFDEF FPC}
|
||
|
{$R *.lfm}
|
||
|
{$ELSE}
|
||
|
{$R *.dfm}
|
||
|
{$ENDIF}
|
||
|
|
||
|
procedure TfrxConnectionItemEdit.ConnBClick(Sender: TObject);
|
||
|
begin
|
||
|
if Assigned(Report) and Assigned(Report.OnEditConnection) then
|
||
|
ConnE.Text := Report.OnEditConnection(ConnE.Text);
|
||
|
end;
|
||
|
|
||
|
end.
|