📄 fnewaccserverproperties.pas
字号:
(*
# (C) Copyright 2003
# Miha Vrhovnik, miha.vrhovnik@cordia.si
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License as
# published by the Free Software Foundation; either version 2 of
# the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston,
# MA 02111-1307 USA
#
# The Initial Developer of the Original Code is Miha Vrhovnik (Slovenia).
# Portions created by Miha Vrhovnik are Copyright (c)2003.
# All Rights Reserved.
#==============================================================================
# Contributor(s):
#==============================================================================
# History: see whats new.txt from distribution package
#==============================================================================
*)
unit fNewAccServerProperties;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, XPMenu, StdCtrls, gnugettext, OmniXMLConf, defFldrs;
type
TfrmNewAccServerProperties = class(TForm)
Label2: TLabel;
txtPOP3Timeout: TEdit;
txtPOP3Port: TEdit;
Label1: TLabel;
Label3: TLabel;
Label4: TLabel;
Label5: TLabel;
Label6: TLabel;
txtSMTPTimeout: TEdit;
txtSMTPPort: TEdit;
cmdOK: TButton;
Cancel: TButton;
procedure cmdOKClick(Sender: TObject);
procedure FormShortCut(var Msg: TWMKey; var Handled: Boolean);
procedure txtExit(Sender: TObject);
procedure FormShow(Sender: TObject);
procedure FormHide(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
procedure LoadDefaults;
end;
var
frmNewAccServerProperties: TfrmNewAccServerProperties;
implementation
uses
fMain, mailBox;
{$R *.dfm}
procedure TfrmNewAccServerProperties.cmdOKClick(Sender: TObject);
begin
Self.Close;
end;
procedure TfrmNewAccServerProperties.FormShortCut(var Msg: TWMKey; var Handled: Boolean);
begin
if msg.CharCode = 27 then begin
Self.Close;
Handled := True;
end;
end;
procedure TfrmNewAccServerProperties.txtExit(Sender: TObject);
begin
try
StrToInt((Sender as TEdit).Text);
except
on EConvertError do begin ShowMessage(_('Please enter the number!'));
(Sender as TEdit).SetFocus; exit; end;
end;
end;
procedure TfrmNewAccServerProperties.FormShow(Sender: TObject);
begin
//translate me
TranslateComponent(Self);
//try to read self position & size
try
frmMailbox.Profile.Config.ReadControlSettings(Self);
except
end;
end;
procedure TfrmNewAccServerProperties.FormHide(Sender: TObject);
begin
//try to write self position & size
try
frmMailbox.Profile.Config.WriteControlSettings(Self);
except
end;
end;
procedure TfrmNewAccServerProperties.LoadDefaults;
begin
txtPOP3Timeout.Text := IntToStr(txtPOP3Timeout.Tag);
txtPOP3Port.Text := IntToStr(txtPOP3Port.Tag);
txtSMTPTimeout.Text := IntToStr(txtSMTPTimeout.Tag);
txtSMTPPort.Text := IntToStr(txtSMTPPort.Tag);
end;
end.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -