getfontform.pas
来自「source code for Marco Cantu s book Delph」· PAS 代码 · 共 37 行
PAS
37 行
unit GetFontForm;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, Menus, StdCtrls, MyFormFont;
type
TForm8 = class(TForm)
btnGetFont: TButton;
Label1: TLabel;
PopupMenu1: TPopupMenu;
one1: TMenuItem;
two1: TMenuItem;
three1: TMenuItem;
procedure btnGetFontClick(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form8: TForm8;
implementation
{$R *.dfm}
procedure TForm8.btnGetFontClick(Sender: TObject);
begin
Label1.Caption := Font.Name + ':' + IntToStr (Font.Size);
end;
end.
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?