// Borland C++ Builder
// Copyright (c) 1995, 1999 by Borland International
// All rights reserved

// (DO NOT EDIT: machine generated header) 'AHMTFontControls.pas' rev: 5.00

#ifndef AHMTFontControlsHPP
#define AHMTFontControlsHPP

#pragma delphiheader begin
#pragma option push -w-
#pragma option push -Vx
#include <Menus.hpp>	// Pascal unit
#include <Forms.hpp>	// Pascal unit
#include <AHMStdClass.hpp>	// Pascal unit
#include <StdCtrls.hpp>	// Pascal unit
#include <Controls.hpp>	// Pascal unit
#include <Graphics.hpp>	// Pascal unit
#include <Classes.hpp>	// Pascal unit
#include <Messages.hpp>	// Pascal unit
#include <Windows.hpp>	// Pascal unit
#include <SysInit.hpp>	// Pascal unit
#include <System.hpp>	// Pascal unit

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

namespace Ahmtfontcontrols
{
//-- type declarations -------------------------------------------------------
#pragma option push -b-
enum TAHMFontTypes { PS, TTF, RASTER, Other };
#pragma option pop

class DELPHICLASS TAHMFontClass;
class PASCALIMPLEMENTATION TAHMFontClass : public System::TObject 
{
	typedef System::TObject inherited;
	
public:
	AnsiString CFontName;
	TAHMFontTypes CFontType;
public:
	#pragma option push -w-inl
	/* TObject.Create */ inline __fastcall TAHMFontClass(void) : System::TObject() { }
	#pragma option pop
	#pragma option push -w-inl
	/* TObject.Destroy */ inline __fastcall virtual ~TAHMFontClass(void) { }
	#pragma option pop
	
};


class DELPHICLASS TAHMFontList;
class PASCALIMPLEMENTATION TAHMFontList : public Classes::TStringList 
{
	typedef Classes::TStringList inherited;
	
__published:
	__fastcall virtual ~TAHMFontList(void);
public:
	#pragma option push -w-inl
	/* TObject.Create */ inline __fastcall TAHMFontList(void) : Classes::TStringList() { }
	#pragma option pop
	
};


typedef Graphics::TBitmap* TAHMFontBits[4];

#pragma option push -b-
enum TAHMFilterOption { ShowTrueType, ShowPostScript, ShowRaster, ShowOther };
#pragma option pop

typedef Set<TAHMFilterOption, ShowTrueType, ShowOther>  TAHMFilterOptions;

typedef void __fastcall (__closure *TAHMOnFontValidate)(System::TObject* Sender, TAHMFontClass* Font
	, bool &accept);

class DELPHICLASS TAHMFontBox;
class PASCALIMPLEMENTATION TAHMFontBox : public Stdctrls::TCustomListBox 
{
	typedef Stdctrls::TCustomListBox inherited;
	
private:
	Ahmstdclass::TAHMAboutSControlStr FAboutStr;
	TAHMFilterOptions FFilterOptions;
	TAHMFontList* FontStringList;
	TAHMOnFontValidate FOnValidateFont;
	Graphics::TBitmap* FBitmaps[4];
	HIDESBASE MESSAGE void __fastcall CMFontChanged(Messages::TMessage &Message);
	AnsiString __fastcall GetFontSelected();
	void __fastcall SetFontSelected(AnsiString Value);
	
protected:
	virtual void __fastcall CreateWnd(void);
	void __fastcall SeTAHMFilterOptions(TAHMFilterOptions Value);
	
public:
	__fastcall virtual TAHMFontBox(Classes::TComponent* AOwner);
	__fastcall virtual ~TAHMFontBox(void);
	virtual void __fastcall DrawItem(int Index, const Windows::TRect &Rect, Windows::TOwnerDrawState State
		);
	void __fastcall ReBuild(void);
	
__published:
	__property Ahmstdclass::TAHMAboutSControlStr About = {read=FAboutStr, write=FAboutStr};
	__property Align ;
	__property BorderStyle ;
	__property Color ;
	__property Ctl3D ;
	__property DragCursor ;
	__property DragMode ;
	__property Enabled ;
	__property ExtendedSelect ;
	__property TAHMFilterOptions FilterOptions = {read=FFilterOptions, write=SeTAHMFilterOptions, default=15
		};
	__property Font ;
	__property IntegralHeight ;
	__property ItemHeight ;
	__property MultiSelect ;
	__property ParentColor ;
	__property ParentCtl3D ;
	__property ParentFont ;
	__property ParentShowHint ;
	__property PopupMenu ;
	__property ShowHint ;
	__property TabOrder ;
	__property TabWidth ;
	__property Visible ;
	__property TAHMOnFontValidate OnValidateFont = {read=FOnValidateFont, write=FOnValidateFont};
	__property OnClick ;
	__property OnDblClick ;
	__property OnDragDrop ;
	__property OnDragOver ;
	__property OnDrawItem ;
	__property OnEndDrag ;
	__property OnEnter ;
	__property OnExit ;
	__property OnKeyDown ;
	__property OnKeyPress ;
	__property OnKeyUp ;
	__property OnMeasureItem ;
	__property OnMouseDown ;
	__property OnMouseMove ;
	__property OnMouseUp ;
	__property OnStartDrag ;
	__property AnsiString FontSelected = {read=GetFontSelected, write=SetFontSelected};
public:
	#pragma option push -w-inl
	/* TWinControl.CreateParented */ inline __fastcall TAHMFontBox(HWND ParentWindow) : Stdctrls::TCustomListBox(
		ParentWindow) { }
	#pragma option pop
	
};


class DELPHICLASS TAHMFontCombo;
class PASCALIMPLEMENTATION TAHMFontCombo : public Stdctrls::TCustomComboBox 
{
	typedef Stdctrls::TCustomComboBox inherited;
	
private:
	TAHMFilterOptions FFilterOptions;
	TAHMFontList* FontStringList;
	TAHMOnFontValidate FOnValidateFont;
	Graphics::TBitmap* FBitmaps[4];
	Ahmstdclass::TAHMAboutSControlStr FAboutStr;
	HIDESBASE MESSAGE void __fastcall CMFontChanged(Messages::TMessage &Message);
	
protected:
	virtual void __fastcall CreateWnd(void);
	void __fastcall SeTAHMFilterOptions(TAHMFilterOptions Value);
	AnsiString __fastcall GetFontSelected();
	void __fastcall SetFontSelected(AnsiString Value);
	
public:
	__fastcall virtual TAHMFontCombo(Classes::TComponent* AOwner);
	__fastcall virtual ~TAHMFontCombo(void);
	virtual void __fastcall DrawItem(int Index, const Windows::TRect &Rect, Windows::TOwnerDrawState State
		);
	void __fastcall ReBuild(void);
	
__published:
	__property Ahmstdclass::TAHMAboutSControlStr About = {read=FAboutStr, write=FAboutStr};
	__property Align ;
	__property Color ;
	__property Ctl3D ;
	__property DragMode ;
	__property DragCursor ;
	__property DropDownCount ;
	__property Enabled ;
	__property TAHMFilterOptions FilterOptions = {read=FFilterOptions, write=SeTAHMFilterOptions, default=15
		};
	__property Font ;
	__property MaxLength ;
	__property ParentColor ;
	__property ParentCtl3D ;
	__property ParentFont ;
	__property ParentShowHint ;
	__property PopupMenu ;
	__property ShowHint ;
	__property TabOrder ;
	__property TabStop ;
	__property Text ;
	__property Visible ;
	__property TAHMOnFontValidate OnValidateFont = {read=FOnValidateFont, write=FOnValidateFont};
	__property OnChange ;
	__property OnClick ;
	__property OnDblClick ;
	__property OnDragDrop ;
	__property OnDragOver ;
	__property OnDrawItem ;
	__property OnDropDown ;
	__property OnEndDrag ;
	__property OnEnter ;
	__property OnExit ;
	__property OnKeyDown ;
	__property OnKeyPress ;
	__property OnKeyUp ;
	__property OnMeasureItem ;
	__property OnStartDrag ;
	__property AnsiString FontSelected = {read=GetFontSelected, write=SetFontSelected};
public:
	#pragma option push -w-inl
	/* TWinControl.CreateParented */ inline __fastcall TAHMFontCombo(HWND ParentWindow) : Stdctrls::TCustomComboBox(
		ParentWindow) { }
	#pragma option pop
	
};


//-- var, const, procedure ---------------------------------------------------

}	/* namespace Ahmtfontcontrols */
#if !defined(NO_IMPLICIT_NAMESPACE_USE)
using namespace Ahmtfontcontrols;
#endif
#pragma option pop	// -w-
#pragma option pop	// -Vx

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