⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 main.h

📁 To create a VCL for RS232.
💻 H
字号:
//---------------------------------------------------------------------------

#ifndef MainH
#define MainH
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include <ExtCtrls.hpp>
#include "..\lib\rs232\RS232.h"
//---------------------------------------------------------------------------
class TForm1 : public TForm
{
__published:	// IDE-managed Components
        TRadioGroup *PortRadioGroup;
        TButton *OpenPortButton;
        TButton *StopSystemButton;
        TMemo *TxMemo;
        TMemo *RxMemo;
        TLabel *Label1;
        TLabel *Label2;
        TButton *TxDataButton;
        TButton *RxDataButton;
        TShape *DTRShape;
        TShape *CTSShape;
        TShape *DSRShape;
        TShape *RIShape;
        TLabel *CD;
        TLabel *CTS;
        TLabel *DSR;
        TLabel *RI;
        TShape *RTSShape;
        TButton *DTRBtn;
        TButton *RTSBtn;
        TShape *CDShape;
        TTimer *Timer1;
        TRS232 *RS2321;
        void __fastcall TxDataButtonClick(TObject *Sender);
        void __fastcall OpenPortButtonClick(TObject *Sender);
        void __fastcall RxDataButtonClick(TObject *Sender);
        void __fastcall StopSystemButtonClick(TObject *Sender);
        void __fastcall Timer1Timer(TObject *Sender);
        void __fastcall DTRBtnClick(TObject *Sender);
        void __fastcall RTSBtnClick(TObject *Sender);
        void __fastcall RS2321ReceiveData(TObject *Sender);
        void __fastcall TxMemoKeyPress(TObject *Sender, char &Key);
private:	// User declarations
public:		// User declarations
        __fastcall TForm1(TComponent* Owner);
};
//---------------------------------------------------------------------------
extern PACKAGE TForm1 *Form1;
//---------------------------------------------------------------------------
#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -