//--------------------------------------------------------------------------- #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 TLabel *Label1; TLabel *Label2; TLabel *Label3; TLabel *Label4; TBitBtn *OKBtn; TBitBtn *CancelBtn; TGroupBox *GroupBox1; TPanel *SampleText; TFontComboBox *FontComboBox; TComboBox *SizeComboBox; TCheckBox *ckShowFont; TColorComboBox *BGColorCmb; TColorComboBox *FGColorCmb; TColorDialog *BackColorDlg; TColorDialog *ForeColorDlg; 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); protected: void UpdatePreview(); private: bool initialized; // Stupid variable to work around stupid combo box change called from FormShow() }; //--------------------------------------------------------------------------- extern PACKAGE TFontSelFrm *FontSelFrm; //--------------------------------------------------------------------------- #endif