📄 tndemo1.h
字号:
//---------------------------------------------------------------------------
#ifndef TnDemo1H
#define TnDemo1H
//---------------------------------------------------------------------------
#include <vcl\Classes.hpp>
#include <vcl\Controls.hpp>
#include <vcl\StdCtrls.hpp>
#include <vcl\Forms.hpp>
#include <vcl\ExtCtrls.hpp>
#include "TnCnx.hpp"
//---------------------------------------------------------------------------
class TTnDemoForm : public TForm
{
__published: // IDE-managed Components
TMemo *DisplayMemo;
TPanel *Panel1;
TLabel *HostLabel;
TLabel *InfoLabel;
TLabel *PortLabel;
TEdit *HostEdit;
TButton *ConnectButton;
TButton *DisconnectButton;
TEdit *PortEdit;
TTnCnx *TnCnx;
void __fastcall ConnectButtonClick(TObject *Sender);
void __fastcall DisconnectButtonClick(TObject *Sender);
void __fastcall TnCnxSessionConnected(TTnCnx *Sender, WORD Error);
void __fastcall TnCnxSessionClosed(TTnCnx *Sender, WORD Error);
void __fastcall TnCnxDataAvailable(TTnCnx *Sender, PChar Buffer, int Len);
void __fastcall DisplayMemoKeyDown(TObject *Sender, WORD &Key,
TShiftState Shift);
void __fastcall DisplayMemoKeyPress(TObject *Sender, char &Key);
private: // User declarations
public: // User declarations
__fastcall TTnDemoForm(TComponent* Owner);
};
//---------------------------------------------------------------------------
extern TTnDemoForm *TnDemoForm;
//---------------------------------------------------------------------------
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -