📄 custpack.pas
字号:
unit CustPack;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs;
type
TCustPackDlg = class(TForm)
private
{ Private declarations }
FBuffer:array [0..4096] of char;
FBuflen:Integer;
public
{ Public declarations }
class procedure Execute;overload;
class procedure Execute(buf:array of char;buflen:Integer);overload;
end;
implementation
{$R *.DFM}
{ TCustPackDlg }
class procedure TCustPackDlg.Execute;
begin
with TCustPackDlg.Create(Application) do
begin
ShowModal;
Free;
end;
end;
class procedure TCustPackDlg.Execute(buf: array of char; buflen: Integer);
begin
with TCustPackDlg.Create(Application) do
begin
CopyMemory(@FBuffer,@buf,buflen);
FBuflen:=buflen;
ShowModal;
Free;
end;
end;
end.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -