//--------------------------------------------------------------------------- #ifndef ChipsFormUnitH #define ChipsFormUnitH //--------------------------------------------------------------------------- #include #include #include #include #include #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