📄 basefrm.pas
字号:
unit BaseFrm;
{*******************************************
* brief: 父窗体,定义统一的风格
* autor: linzhenqun
* date: 2005-10-19
* email: linzhengqun@163.com
* blog: http://blog.csdn.net/linzhengqun
********************************************}
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs;
type
TFrmBase = class(TForm)
private
{ Private declarations }
public
constructor Create(AOwner: TComponent); override;
{ Public declarations }
procedure getLangRes;virtual; //abstract;
end;
var
FrmBase: TFrmBase;
implementation
//uses
// gnugettext;
{$R *.dfm}
constructor TFrmBase.Create(AOwner: TComponent);
begin
inherited;
//在这里定制窗口的风格
Font := Screen.MenuFont;
getLangRes;
//TranslateComponent(self); //界面语言加载
end;
procedure TFrmBase.getLangRes;
begin
// 所有界面语言 加载/改动
end;
end.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -