📄 expgpresf.pas
字号:
unit ExpGPResF;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
Grids, ExtCtrls, Buttons;
type
TResultPForm = class(TForm)
StringGrid1: TStringGrid;
Panel1: TPanel;
procedure SpeedClick (Sender: TObject);
procedure FormCreate(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
implementation
{$R *.DFM}
procedure TResultPForm.SpeedClick(Sender: TObject);
var
OpenDlg: TOpenDialog;
begin
OpenDlg := TOpenDialog.Create (nil);
try
OpenDlg.Filter :=
'Bitmap file (*.bmp)|*.bmp|Any file (*.*)|*.*';
if OpenDlg.Execute then
with (Sender as TSpeedButton) do
begin
Glyph.LoadFromFile (OpenDlg.Filename);
if (Glyph.Width mod Glyph.Height) = 0 then
NumGlyphs := Glyph.Width div Glyph.Height;
end;
finally
OpenDlg.Free;
end;
end;
procedure TResultPForm.FormCreate(Sender: TObject);
begin
// dummy code
end;
end.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -