Files
winapp/ChipsFormUnit.h
2026-06-12 22:37:02 +08:00

42 lines
1.3 KiB
C++

//---------------------------------------------------------------------------
#ifndef ChipsFormUnitH
#define ChipsFormUnitH
//---------------------------------------------------------------------------
#include <System.Classes.hpp>
#include <Vcl.Controls.hpp>
#include <Vcl.StdCtrls.hpp>
#include <Vcl.Forms.hpp>
#include <Vcl.Buttons.hpp>
#include "PNGButton.hpp"
//---------------------------------------------------------------------------
class TChipsForm : public TForm
{
__published: // IDE-managed Components
TPNGButton *m_btnChip1;
TPNGButton *m_btnChip5;
TPNGButton *m_btnChip10;
TPNGButton *m_btnChip20;
TPNGButton *m_btnChip50;
TPNGButton *m_btnChip100;
TPNGButton *m_btnChip500;
TPNGButton *m_btnChip1k;
TPNGButton *m_btnChip5k;
TPNGButton *m_btnChip10k;
void __fastcall ChipClick(TObject *Sender);
void __fastcall FormResize(TObject *Sender);
void __fastcall FormCanResize(TObject *Sender, int &NewWidth, int &NewHeight, bool &Resize);
private: // User declarations
TPNGButton* m_aChips[10];
int m_aValues[10];
int m_iSelChip;
public: // User declarations
int m_nSelChip;
__fastcall TChipsForm(TComponent* Owner);
};
//---------------------------------------------------------------------------
extern PACKAGE TChipsForm *ChipsForm;
//---------------------------------------------------------------------------
#endif