// CodeGear C++Builder
// Copyright (c) 1995, 2009 by Embarcadero Technologies, Inc.
// All rights reserved

// (DO NOT EDIT: machine generated header) 'Entitystyleform.pas' rev: 21.00

#ifndef EntitystyleformHPP
#define EntitystyleformHPP

#pragma delphiheader begin
#pragma option push
#pragma option -w-      // All warnings off
#pragma option -Vx      // Zero-length empty class member functions
#pragma pack(push,8)
#include <System.hpp>	// Pascal unit
#include <Sysinit.hpp>	// Pascal unit
#include <Windows.hpp>	// Pascal unit
#include <Messages.hpp>	// Pascal unit
#include <Sysutils.hpp>	// Pascal unit
#include <Classes.hpp>	// Pascal unit
#include <Graphics.hpp>	// Pascal unit
#include <Controls.hpp>	// Pascal unit
#include <Forms.hpp>	// Pascal unit
#include <Dialogs.hpp>	// Pascal unit
#include <Stdctrls.hpp>	// Pascal unit
#include <Comctrls.hpp>	// Pascal unit
#include <Extctrls.hpp>	// Pascal unit
#include <Buttons.hpp>	// Pascal unit
#include <Anygrids.hpp>	// Pascal unit
#include <Anydialogs.hpp>	// Pascal unit
#include <Types.hpp>	// Pascal unit

//-- user supplied -----------------------------------------------------------

namespace Entitystyleform
{
//-- type declarations -------------------------------------------------------
class DELPHICLASS TfrmEntityStyle;
class DELPHICLASS TLine;
class PASCALIMPLEMENTATION TfrmEntityStyle : public Forms::TForm
{
	typedef Forms::TForm inherited;
	
__published:
	Comctrls::TPageControl* PageControl1;
	Comctrls::TTabSheet* AlignSheet;
	Comctrls::TTabSheet* FrameSheet;
	Stdctrls::TButton* btnOK;
	Stdctrls::TButton* btnCancel;
	Comctrls::TTabSheet* PatternSheet;
	Comctrls::TTabSheet* CellValueTypeSheet;
	Comctrls::TTabSheet* FontSheet;
	Stdctrls::TLabel* lblClassType;
	Stdctrls::TListBox* lstClass;
	Comctrls::TTabSheet* CellTypeSheet;
	Stdctrls::TGroupBox* gbxClassExample;
	Stdctrls::TLabel* lblClassExample;
	Extctrls::TNotebook* nbkClass;
	Stdctrls::TCheckBox* chkThousandSept;
	Stdctrls::TLabel* lblDigits;
	Stdctrls::TCheckBox* chkFloatThousand;
	Stdctrls::TLabel* lblTextAlignType;
	Extctrls::TBevel* Bevel1;
	Stdctrls::TLabel* lblTextControl;
	Extctrls::TBevel* Bevel2;
	Stdctrls::TLabel* lblTextHorzAlign;
	Stdctrls::TComboBox* cbbTextHorzAlign;
	Stdctrls::TLabel* lblTextVertAlign;
	Stdctrls::TComboBox* cbbTextVertAlign;
	Stdctrls::TCheckBox* chkWordWrap;
	Stdctrls::TCheckBox* chkVerticalText;
	Stdctrls::TGroupBox* gbxFontExample;
	Extctrls::TPanel* pnlFontExample;
	Stdctrls::TListBox* lstFontName;
	Stdctrls::TLabel* lblFontName;
	Stdctrls::TEdit* edtFontName;
	Stdctrls::TLabel* lblFontStyle;
	Stdctrls::TEdit* edtFontStyle;
	Stdctrls::TListBox* lstFontStyle;
	Stdctrls::TLabel* lblFontSize;
	Stdctrls::TEdit* edtFontSize;
	Stdctrls::TListBox* lstFontSize;
	Stdctrls::TGroupBox* gbxFontEffect;
	Stdctrls::TLabel* lblFontCharset;
	Stdctrls::TComboBox* cbbFontCharset;
	Stdctrls::TCheckBox* chkStrikeOut;
	Stdctrls::TCheckBox* chkUnderline;
	Stdctrls::TLabel* lblFontColor;
	Stdctrls::TComboBox* cbbFontColor;
	Comctrls::TTabSheet* ProtectSheet;
	Stdctrls::TLabel* lblLine;
	Extctrls::TBevel* Bevel3;
	Extctrls::TImage* imgLine;
	Buttons::TSpeedButton* btnAllLine;
	Buttons::TSpeedButton* btnBottomLine;
	Buttons::TSpeedButton* btnLeftLine;
	Buttons::TSpeedButton* btnRightLine;
	Buttons::TSpeedButton* btnTopLine;
	Buttons::TSpeedButton* btnLineNone;
	Stdctrls::TLabel* lblFrame;
	Extctrls::TBevel* Bevel4;
	Extctrls::TImage* imgFrame;
	Buttons::TSpeedButton* btnAllFrame;
	Buttons::TSpeedButton* btnBottomFrame;
	Buttons::TSpeedButton* btnLeftFrame;
	Buttons::TSpeedButton* btnRightFrame;
	Buttons::TSpeedButton* btnTopFrame;
	Buttons::TSpeedButton* btnFrameNone;
	Stdctrls::TLabel* lblFrameColor;
	Stdctrls::TComboBox* cbbFrameColor;
	Stdctrls::TLabel* lblFrameWidth;
	Stdctrls::TEdit* edtFrameWidth;
	Stdctrls::TLabel* lblFrameStyle;
	Stdctrls::TComboBox* cbbFrameStyle;
	Stdctrls::TLabel* lblCellPattern;
	Extctrls::TBevel* Bevel5;
	Buttons::TSpeedButton* SpeedButton13;
	Buttons::TSpeedButton* SpeedButton14;
	Buttons::TSpeedButton* SpeedButton15;
	Buttons::TSpeedButton* SpeedButton16;
	Buttons::TSpeedButton* SpeedButton17;
	Buttons::TSpeedButton* SpeedButton18;
	Buttons::TSpeedButton* SpeedButton19;
	Buttons::TSpeedButton* SpeedButton20;
	Buttons::TSpeedButton* SpeedButton21;
	Buttons::TSpeedButton* SpeedButton22;
	Buttons::TSpeedButton* SpeedButton23;
	Buttons::TSpeedButton* SpeedButton24;
	Buttons::TSpeedButton* SpeedButton25;
	Buttons::TSpeedButton* SpeedButton26;
	Buttons::TSpeedButton* SpeedButton27;
	Buttons::TSpeedButton* SpeedButton28;
	Buttons::TSpeedButton* SpeedButton29;
	Buttons::TSpeedButton* SpeedButton30;
	Buttons::TSpeedButton* SpeedButton31;
	Buttons::TSpeedButton* SpeedButton32;
	Buttons::TSpeedButton* SpeedButton33;
	Buttons::TSpeedButton* SpeedButton34;
	Buttons::TSpeedButton* SpeedButton35;
	Buttons::TSpeedButton* SpeedButton36;
	Buttons::TSpeedButton* SpeedButton37;
	Buttons::TSpeedButton* SpeedButton38;
	Buttons::TSpeedButton* SpeedButton39;
	Buttons::TSpeedButton* SpeedButton40;
	Buttons::TSpeedButton* SpeedButton41;
	Buttons::TSpeedButton* SpeedButton42;
	Buttons::TSpeedButton* SpeedButton43;
	Buttons::TSpeedButton* SpeedButton44;
	Buttons::TSpeedButton* SpeedButton45;
	Buttons::TSpeedButton* SpeedButton46;
	Buttons::TSpeedButton* SpeedButton47;
	Buttons::TSpeedButton* SpeedButton48;
	Buttons::TSpeedButton* SpeedButton49;
	Buttons::TSpeedButton* SpeedButton50;
	Buttons::TSpeedButton* SpeedButton51;
	Buttons::TSpeedButton* SpeedButton52;
	Stdctrls::TLabel* lblBackColor;
	Stdctrls::TLabel* lblBrushStyle;
	Stdctrls::TComboBox* cbbBrushStyle;
	Stdctrls::TLabel* lblCellType;
	Stdctrls::TListBox* lstCellType;
	Stdctrls::TGroupBox* CellTypeExample;
	Stdctrls::TCheckBox* chkFixCell;
	Stdctrls::TCheckBox* chkReadOnly;
	Stdctrls::TCheckBox* chkDirectInput;
	Stdctrls::TCheckBox* chkTrimZero;
	Stdctrls::TLabel* lblStep;
	Stdctrls::TEdit* edtStep;
	Stdctrls::TLabel* lblTextLMargin;
	Stdctrls::TEdit* edtTextLMargin;
	Stdctrls::TLabel* lblTextRMargin;
	Stdctrls::TEdit* edtTextRMargin;
	Stdctrls::TLabel* lblTextTMargin;
	Stdctrls::TEdit* edtTextTMargin;
	Stdctrls::TLabel* lblTextBMargin;
	Stdctrls::TEdit* edtTextBMargin;
	Stdctrls::TLabel* lblGraphAlignType;
	Extctrls::TBevel* Bevel6;
	Stdctrls::TLabel* lblGraphControl;
	Extctrls::TBevel* Bevel7;
	Stdctrls::TLabel* lblGraphHorzAlign;
	Stdctrls::TLabel* lblGraphVertAlign;
	Stdctrls::TComboBox* cbbGraphHorzAlign;
	Stdctrls::TComboBox* cbbGraphVertAlign;
	Stdctrls::TLabel* lblGraphLMargin;
	Stdctrls::TEdit* edtGraphLMargin;
	Stdctrls::TLabel* lblGraphRMargin;
	Stdctrls::TEdit* edtGraphRMargin;
	Stdctrls::TLabel* lblGraphTMargin;
	Stdctrls::TEdit* edtGraphTMargin;
	Stdctrls::TLabel* lblGraphBMargin;
	Stdctrls::TEdit* edtGraphBMargin;
	Extctrls::TBevel* Bevel8;
	Stdctrls::TEdit* edtDigits;
	Extctrls::TShape* TopLine1;
	Extctrls::TShape* LeftLine1;
	Extctrls::TShape* RightLine1;
	Extctrls::TShape* BottomLine1;
	Extctrls::TShape* TopFrame1;
	Extctrls::TShape* LeftFrame1;
	Extctrls::TShape* BottomFrame1;
	Extctrls::TShape* RightFrame1;
	Buttons::TSpeedButton* btnCustom;
	Stdctrls::TLabel* lblInputLink;
	Stdctrls::TEdit* edtInputNormal;
	Stdctrls::TCheckBox* chkInputCheckBox;
	Stdctrls::TRadioButton* rdbInputRadio;
	Stdctrls::TComboBox* cbbInputCombo;
	Comctrls::TDateTimePicker* dtInputDate;
	Extctrls::TImage* imgRTF;
	Stdctrls::TEdit* btnInputSpin;
	Extctrls::TImage* imgCurrency;
	Comctrls::TUpDown* udDigits;
	Comctrls::TUpDown* udTextLMargin;
	Comctrls::TUpDown* udTextRMargin;
	Comctrls::TUpDown* udTextTMargin;
	Comctrls::TUpDown* udTextBMargin;
	Comctrls::TUpDown* udGraphLMargin;
	Comctrls::TUpDown* udGraphRMargin;
	Comctrls::TUpDown* udGraphTMargin;
	Comctrls::TUpDown* udGraphBMargin;
	Comctrls::TUpDown* InputSpin;
	Comctrls::TUpDown* udFrameWidth;
	Stdctrls::TCheckBox* chkScaleFont;
	Extctrls::TImage* btnInputButton;
	Stdctrls::TCheckBox* chkPrintable;
	void __fastcall FormCreate(System::TObject* Sender);
	void __fastcall lstFontNameDrawItem(Controls::TWinControl* Control, int Index, const Types::TRect &Rect, Windows::TOwnerDrawState State);
	void __fastcall FormDestroy(System::TObject* Sender);
	void __fastcall lstFontNameClick(System::TObject* Sender);
	void __fastcall lstFontSizeClick(System::TObject* Sender);
	void __fastcall lstFontStyleClick(System::TObject* Sender);
	void __fastcall cbbFontCharsetChange(System::TObject* Sender);
	void __fastcall chkStrikeOutClick(System::TObject* Sender);
	void __fastcall chkUnderlineClick(System::TObject* Sender);
	void __fastcall cbbFontColorDrawItem(Controls::TWinControl* Control, int Index, const Types::TRect &Rect, Windows::TOwnerDrawState State);
	void __fastcall cbbFontColorChange(System::TObject* Sender);
	void __fastcall lstClassClick(System::TObject* Sender);
	void __fastcall chkThousandSeptClick(System::TObject* Sender);
	void __fastcall imgLineMouseDown(System::TObject* Sender, Controls::TMouseButton Button, Classes::TShiftState Shift, int X, int Y);
	void __fastcall LeftLine1MouseDown(System::TObject* Sender, Controls::TMouseButton Button, Classes::TShiftState Shift, int X, int Y);
	void __fastcall imgFrameMouseDown(System::TObject* Sender, Controls::TMouseButton Button, Classes::TShiftState Shift, int X, int Y);
	void __fastcall cbbFrameStyleDrawItem(Controls::TWinControl* Control, int Index, const Types::TRect &Rect, Windows::TOwnerDrawState State);
	void __fastcall btnAllLineClick(System::TObject* Sender);
	void __fastcall btnTopLineClick(System::TObject* Sender);
	void __fastcall btnBottomLineClick(System::TObject* Sender);
	void __fastcall btnLeftLineClick(System::TObject* Sender);
	void __fastcall btnRightLineClick(System::TObject* Sender);
	void __fastcall btnLineNoneClick(System::TObject* Sender);
	void __fastcall btnAllFrameClick(System::TObject* Sender);
	void __fastcall btnTopFrameClick(System::TObject* Sender);
	void __fastcall btnBottomFrameClick(System::TObject* Sender);
	void __fastcall btnLeftFrameClick(System::TObject* Sender);
	void __fastcall btnRightFrameClick(System::TObject* Sender);
	void __fastcall btnFrameNoneClick(System::TObject* Sender);
	void __fastcall btnCustomClick(System::TObject* Sender);
	void __fastcall cbbBrushStyleDrawItem(Controls::TWinControl* Control, int Index, const Types::TRect &Rect, Windows::TOwnerDrawState State);
	void __fastcall btnCustomMouseDown(System::TObject* Sender, Controls::TMouseButton Button, Classes::TShiftState Shift, int X, int Y);
	void __fastcall lstCellTypeClick(System::TObject* Sender);
	void __fastcall edtFontNameChange(System::TObject* Sender);
	void __fastcall edtFontStyleChange(System::TObject* Sender);
	void __fastcall edtFontSizeChange(System::TObject* Sender);
	void __fastcall btnOKClick(System::TObject* Sender);
	void __fastcall chkWordWrapClick(System::TObject* Sender);
	void __fastcall chkVerticalTextClick(System::TObject* Sender);
	void __fastcall FormShow(System::TObject* Sender);
	void __fastcall chkScaleFontClick(System::TObject* Sender);
	void __fastcall lblInputLinkClick(System::TObject* Sender);
	
private:
	Graphics::TBitmap* FTrueTypeBMP;
	int Numused;
	TLine* TopFrame;
	TLine* LeftFrame;
	TLine* BottomFrame;
	TLine* RightFrame;
	TLine* TopLine;
	TLine* LeftLine;
	TLine* BottomLine;
	TLine* RightLine;
	Anydialogs::TAnyColorDialog* ColorDialog;
	int FRow;
	int FCol;
	Anygrids::TAnyColumn* FColumn;
	Anygrids::TCustomAnyGrid* FAnyGrid;
	bool FUpdating;
	System::UnicodeString __fastcall GetClassExample(void);
	void __fastcall InvertFrameVisible(TLine* Frame, bool Y);
	void __fastcall SetFrameVisible(TLine* Frame, bool Y);
	void __fastcall SetLastColorBtnDown(void);
	bool __fastcall SetColorBtnDown(Graphics::TColor Color, Controls::TControl* Exclude);
	void __fastcall SetCustomColor(Graphics::TColor BackColor);
	void __fastcall SetCellFrame(Anygrids::TCellInfo* Cell);
	void __fastcall SetFrameToCell(Anygrids::TCellInfo* Cell);
	void __fastcall SetDataToCell(Anygrids::TCellInfo* Cell);
	void __fastcall SetDataToColumn(Anygrids::TAnyColumn* Column);
	MESSAGE void __fastcall WMShowed(Messages::TMessage &message);
	
public:
	void __fastcall SetCell(int Row, int Col, Anygrids::TCustomAnyGrid* AnyGrid);
	void __fastcall SetColumn(Anygrids::TAnyColumn* Column, Anygrids::TCustomAnyGrid* AnyGrid);
public:
	/* TCustomForm.Create */ inline __fastcall virtual TfrmEntityStyle(Classes::TComponent* AOwner) : Forms::TForm(AOwner) { }
	/* TCustomForm.CreateNew */ inline __fastcall virtual TfrmEntityStyle(Classes::TComponent* AOwner, int Dummy) : Forms::TForm(AOwner, Dummy) { }
	/* TCustomForm.Destroy */ inline __fastcall virtual ~TfrmEntityStyle(void) { }
	
public:
	/* TWinControl.CreateParented */ inline __fastcall TfrmEntityStyle(HWND ParentWindow) : Forms::TForm(ParentWindow) { }
	
};


#pragma option push -b-
enum TLineShape { lsLeftLine, lsTopLine };
#pragma option pop

class PASCALIMPLEMENTATION TLine : public Controls::TGraphicControl
{
	typedef Controls::TGraphicControl inherited;
	
private:
	Graphics::TColor FColor;
	Graphics::TPenStyle FStyle;
	TLineShape FLineShape;
	Graphics::TColor FBrushColor;
	HIDESBASE void __fastcall SetColor(const Graphics::TColor Value);
	void __fastcall SetLineShape(const TLineShape Value);
	void __fastcall SetStyle(const Graphics::TPenStyle Value);
	void __fastcall SetBrushColor(const Graphics::TColor Value);
	
protected:
	virtual void __fastcall Paint(void);
	
public:
	__fastcall virtual TLine(Classes::TComponent* AOwner);
	__property Graphics::TPenStyle Style = {read=FStyle, write=SetStyle, nodefault};
	__property Graphics::TColor PenColor = {read=FColor, write=SetColor, nodefault};
	__property Graphics::TColor BrushColor = {read=FBrushColor, write=SetBrushColor, nodefault};
	__property TLineShape LineShape = {read=FLineShape, write=SetLineShape, nodefault};
public:
	/* TGraphicControl.Destroy */ inline __fastcall virtual ~TLine(void) { }
	
};


//-- var, const, procedure ---------------------------------------------------
static const Word WM_SHOWED = 0x401;
extern PACKAGE TfrmEntityStyle* frmEntityStyle;

}	/* namespace Entitystyleform */
using namespace Entitystyleform;
#pragma pack(pop)
#pragma option pop

#pragma delphiheader end.
//-- end unit ----------------------------------------------------------------
#endif	// EntitystyleformHPP
