summaryrefslogtreecommitdiff
path: root/apps/windoze/CBuilder5/BibleCS/FontSel.h
blob: d07e798630db74454b3a71c4a792d5b794f1f1aa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
//---------------------------------------------------------------------------

#ifndef FontSelH
#define FontSelH
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include <Buttons.hpp>
#include <Dialogs.hpp>
#include <ExtCtrls.hpp>
//#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