📄 fdefaultclient.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 fDefaultClient;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
StdCtrls, ExtCtrls;
type
TfrmDefaultClient = class(TForm)
cmdYes: TButton;
cmdNo: TButton;
Label1: TLabel;
CheckBox1: TCheckBox;
Image1: TImage;
procedure FormClose(Sender: TObject; var Action: TCloseAction);
procedure FormCreate(Sender: TObject);
procedure FormShow(Sender: TObject);
private
{ Private declarations }
FDontCheckIfDefault: Boolean;
public
{ Public declarations }
property DontCheckIfDefault: Boolean read FDontCheckIfDefault;
end;
var
frmDefaultClient: TfrmDefaultClient;
implementation
uses
mailBox, gnugettext;
{$R *.DFM}
procedure TfrmDefaultClient.FormClose(Sender: TObject; var Action: TCloseAction);
begin
FDontCheckIfDefault := CheckBox1.Checked;
end;
procedure TfrmDefaultClient.FormCreate(Sender: TObject);
begin
Image1.Picture.Icon.Assign(Application.Icon);
end;
procedure TfrmDefaultClient.FormShow(Sender: TObject);
var t, l: Integer;
begin
//translate me
TranslateComponent(Self);
//try to read self position & size
try
frmMailbox.Profile.Config.ReadControlSettings(Self);
except
//automatic window positioning failed
//so we just center the form on screen
t := (Screen.Height div 2) - (Self.Height div 2);
l := (Screen.Width div 2) - (Self.Width div 2);
Self.Top := t;
Self.Left := l;
end;
end;
end.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -