?? unit1.pas
字號:
unit Unit1;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
StdCtrls;
type
TForm1 = class(TForm)
Button1: TButton;
procedure Button1Click(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form1: TForm1;
implementation
{$R *.DFM}
procedure openport(PrinterName:pchar);stdcall;far; external 'e:\other\dll-try\tsclib.dll';
procedure closeport; external 'e:\other\dll-try\tsclib.dll';
procedure sendcommand(Command:pchar);stdcall;far;external 'e:\other\dll-try\tsclib.dll';
procedure setup(LabelWidth, LabelHeight, Speed, Density, Sensor, Vertical, Offset:pchar);stdcall; far; external 'e:\other\dll-try\tsclib.dll';
procedure downloadpcx(Filename,ImageName:pchar);stdcall;far;external 'e:\other\dll-try\tsclib.dll';
procedure barcode(X, Y, CodeType, Height, Readable, Rotation, Narrow, Wide, Code :pchar); stdcall; far; external 'e:\other\dll-try\tsclib.dll';
procedure printerfont(X, Y, FontName, Rotation, Xmul, Ymul, Content:pchar);stdcall;far; external 'e:\other\dll-try\tsclib.dll';
procedure clearbuffer; external 'e:\other\dll-try\tsclib.dll';
procedure printlabel(NumberOfSet, NumberOfCopoy:pchar);stdcall; far;external 'e:\other\dll-try\tsclib.dll';
procedure formfeed;external 'e:\other\dll-try\tsclib.dll';
procedure nobackfeed; external 'e:\other\dll-try\tsclib.dll';
procedure windowsfont (X, Y, FontHeight, Rotation, FontStyle, FontUnderline : integer; FaceName, TextContect:pchar);stdcall;far;external 'e:\other\dll-try\tsclib.dll';
procedure TForm1.Button1Click(Sender: TObject);
var
i: Integer;
begin
openport('TSC CLEVER TTP-243');
for i:=1 to 2 do
begin
clearbuffer;
sendcommand('DIRECTION 1');
windowsfont(5, 115, 30, 0, 2, 0, '穝燦
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -