📄 main.h
字号:
//---------------------------------------------------------------------------
#ifndef mainH
#define mainH
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include <ExtCtrls.hpp>
#include <Buttons.hpp>
#include <ScktComp.hpp>
//---------------------------------------------------------------------------
class TfrmMain : public TForm
{
__published: // IDE-managed Components
TPanel *Panel3;
TLabel *Label1;
TLabel *Label2;
TLabel *Label3;
TGroupBox *GroupBox1;
TSpeedButton *sbLed1;
TSpeedButton *sbLed2;
TSpeedButton *sbLed3;
TGroupBox *GroupBox2;
TButton *Button1;
TButton *btClose;
TShape *spKey1;
TShape *spKey2;
TShape *spKey3;
TShape *spKey4;
TLabel *Label4;
TLabel *Label5;
TLabel *Label6;
TLabel *Label7;
TEdit *edIP;
TLabel *Label8;
TLabel *Label9;
TEdit *edInterval;
TButton *btStart;
TTimer *timer;
TButton *Button3;
TButton *Button4;
TLabel *Label10;
TEdit *edPort;
void __fastcall Button1Click(TObject *Sender);
void __fastcall btCloseClick(TObject *Sender);
void __fastcall sbLed1Click(TObject *Sender);
void __fastcall Button4Click(TObject *Sender);
void __fastcall btStartClick(TObject *Sender);
void __fastcall timerTimer(TObject *Sender);
void __fastcall Button3Click(TObject *Sender);
void __fastcall FormClose(TObject *Sender, TCloseAction &Action);
private: // User declarations
public: // User declarations
__fastcall TfrmMain(TComponent* Owner);
void __fastcall ShowKey(TShape *s,bool on);
int sock;
};
//---------------------------------------------------------------------------
extern PACKAGE TfrmMain *frmMain;
//---------------------------------------------------------------------------
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -