📄 sendfax1.pas
字号:
(***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* for the specific language governing rights and limitations under the
* License.
*
* The Original Code is TurboPower Async Professional
*
* The Initial Developer of the Original Code is
* TurboPower Software
*
* Portions created by the Initial Developer are Copyright (C) 1991-2002
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
*
* ***** END LICENSE BLOCK ***** *)
{**********************************************************}
{* SENDFAX1.PAS *}
{**********************************************************}
unit Sendfax1;
interface
uses
SysUtils, WinTypes, WinProcs, Messages, Classes, Graphics, Controls,
Forms, Dialogs, StdCtrls, ExtCtrls;
type
TsfFaxList = class(TForm)
Panel1: TPanel;
Label1: TLabel;
flFileName: TEdit;
Label2: TLabel;
flCover: TEdit;
Label3: TLabel;
flPhoneNumber: TEdit;
flAction: TButton;
flCancel: TButton;
procedure flActionClick(Sender: TObject);
procedure flCancelClick(Sender: TObject);
procedure FormActivate(Sender: TObject);
private
{ Private declarations }
function GetFaxName : String;
procedure SetFaxName(const NewName : String);
function GetCoverName : String;
procedure SetCoverName(const NewName : String);
function GetPhoneNumber : String;
procedure SetPhoneNumber(const NewNumber : String);
public
property FaxName : String
read GetFaxName write SetFaxName;
property CoverName : String
read GetCoverName write SetCoverName;
property PhoneNumber : String
read GetPhoneNumber write SetPhoneNumber;
{ Public declarations }
end;
var
sfFaxList: TsfFaxList;
implementation
{$R *.DFM}
procedure TsfFaxList.flActionClick(Sender: TObject);
begin
ModalResult := mrOK;
end;
procedure TsfFaxList.flCancelClick(Sender: TObject);
begin
ModalResult := mrCancel;
end;
function TsfFaxList.GetFaxName : String;
begin
Result := flFileName.Text;
end;
procedure TsfFaxList.SetFaxName(const NewName : String);
begin
flFileName.Text := NewName;
end;
function TsfFaxList.GetCoverName : String;
begin
Result := flCover.Text;
end;
procedure TsfFaxList.SetCoverName(const NewName : String);
begin
flCover.Text := NewName;
end;
function TsfFaxList.GetPhoneNumber : String;
begin
Result := flPhoneNumber.Text;
end;
procedure TsfFaxList.SetPhoneNumber(const NewNumber : String);
begin
flPhoneNumber.Text := NewNumber;
end;
procedure TsfFaxList.FormActivate(Sender: TObject);
begin
flPhoneNumber.SetFocus;
end;
end.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -