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

📄 unit1.h

📁 iCAN主站库[windows平台DLL],用于开发iCAN系统windows平台程序[上位机程序]
💻 H
字号:
//---------------------------------------------------------------------------

#ifndef Unit1H
#define Unit1H
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include <ComCtrls.hpp>
#include <ExtCtrls.hpp>
//---------------------------------------------------------------------------
class TForm1 : public TForm
{
__published:	// IDE-managed Components
        TGroupBox *GroupBox1;
        TLabel *Label1;
        TLabel *Label2;
        TLabel *Label3;
        TLabel *Label4;
        TLabel *Label5;
        TLabel *Label6;
        TLabel *Label7;
        TComboBox *ComboBox_Devtype;
        TComboBox *ComboBox_DevInd;
        TComboBox *ComboBox_CANInd;
        TComboBox *ComboBox_Baud;
        TComboBox *ComboBox_MasterID;
        TEdit *Edit_MasterCycle;
        TButton *Button_Start;
        TGroupBox *GroupBox2;
        TLabel *Label8;
        TComboBox *ComboBox_Disslave;
        TButton *Button_Connect;
        TGroupBox *GroupBox3;
        TLabel *Label9;
        TLabel *Label10;
        TLabel *Label11;
        TComboBox *ComboBox_ConSlave;
        TComboBox *ComboBox_Datatype;
        TButton *Button_SendData;
        TButton *Button_Disconnect;
        TEdit *Edit_Data;
        TListView *ListView_Data;
        TTimer *Timer1;
        void __fastcall FormCreate(TObject *Sender);
        void __fastcall Button_StartClick(TObject *Sender);
        void __fastcall Button_ConnectClick(TObject *Sender);
        void __fastcall Button_SendDataClick(TObject *Sender);
        void __fastcall Button_DisconnectClick(TObject *Sender);
        void __fastcall Timer1Timer(TObject *Sender);
        void __fastcall FormDestroy(TObject *Sender);
private:	// User declarations
public:		// User declarations
        __fastcall TForm1(TComponent* Owner);
        void __fastcall Selcanbaud();
        void __fastcall SetBtnStatus();
        void __fastcall DelAllFromList(TObject* Sender);
        void __fastcall SetMaster(int oldmaster,int newmaster,TObject* Sender);
        void __fastcall AddConnectedItem(HANDLE hslave);
        void __fastcall AddItemToCombo(TComboBox* box, int slaveid);
        void __fastcall AddItemToList(HANDLE hslave);
        void __fastcall GetByteArr(TEdit* box, byte* buf, int* len);
        void __fastcall DelItemFromCombo(TComboBox* box, int slaveid);
        void __fastcall DisconnectItem(int ind);
        AnsiString __fastcall DataToStr(byte* buf, int len);
};
//---------------------------------------------------------------------------
extern PACKAGE TForm1 *Form1;
//---------------------------------------------------------------------------
#endif

⌨️ 快捷键说明

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