aboutsummaryrefslogtreecommitdiffstats
path: root/apps/windoze/CBuilder5/BibleCS/FontSel.h
blob: 65059f482533d6f7462667e70e6dc09a4b1684cb (plain) (blame)
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
57
58
59
60
61
//---------------------------------------------------------------------------

#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
	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