//--------------------------------------------------------------------------- #ifndef FontSelH #define FontSelH //--------------------------------------------------------------------------- #include #include #include #include #include #include #include //#include "D:\\Program Files\\Borland\\CBuilder5\\RX\\Units\\Rxcombos.hpp" #include "RxCombos.hpp" //--------------------------------------------------------------------------- class TFontSelFrm : public TForm { __published: // IDE-managed Components TPanel *Panel1; TPanel *Panel2; TLabel *Label1; TLabel *Label2; TLabel *Label3; TLabel *Label4; TComboBox *SizeComboBox; TCheckBox *ckShowFont; TPanel *pnlFontComboBox; TPanel *pnlBGColorCmb; TPanel *pnlFGColorCmb; TBitBtn *OKBtn; TBitBtn *CancelBtn; TGroupBox *GroupBox1; TPanel *SampleText; TColorDialog *FGColorDlg; TColorDialog *BGColorDlg; void __fastcall FormShow(TObject *Sender); void __fastcall ckShowFontClick(TObject *Sender); void __fastcall FontComboBoxChange(TObject *Sender); void __fastcall SizeComboBoxChange(TObject *Sender); void __fastcall BGColorCmbChange(TObject *Sender); void __fastcall FGColorCmbChange(TObject *Sender); void __fastcall OKBtnClick(TObject *Sender); void __fastcall CancelBtnClick(TObject *Sender); public: // User declarations TFont* Font; int BackColor; public: // User declarations __fastcall TFontSelFrm(TComponent* Owner); TFontComboBox *FontComboBox; TColorComboBox *BGColorCmb; TColorComboBox *FGColorCmb; protected: void UpdatePreview(); private: bool initialized; // Stupid variable to work around stupid combo box change called from FormShow() }; //--------------------------------------------------------------------------- extern PACKAGE TFontSelFrm *FontSelFrm; //--------------------------------------------------------------------------- #endif