myformfont.pas

来自「source code for Marco Cantu s book Delph」· PAS 代码 · 共 38 行

PAS
38
字号
unit MyFormFont;

interface

uses
  Forms, SysUtils, Classes;

type
  TForm = class (Forms.TForm)
  public
    constructor Create(AOwner: TComponent); override;
  end;

implementation

uses
  Windows;

function IsVista: Boolean;
begin
  Result := lobyte(loword (GetVersion)) = 6;
end;
                        
{ TForm }

constructor TForm.Create(AOwner: TComponent);
begin
  inherited;

  if IsVista then
  begin
    Font.Name := 'Segoe UI';
    Font.Size := 9;
  end;
end;

end.

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?