// Borland C++ Builder
// Copyright (c) 1995, 2002 by Borland Software Corporation
// All rights reserved

// (DO NOT EDIT: machine generated header) 'ahmtfontcontrols.pas' rev: 6.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:
	AnsiString 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 Types::TRect &Rect, Windows::TOwnerDrawState State);
	void __fastcall ReBuild(void);
	
__published:
	__property AnsiString About = {read=FAboutStr, write=FAboutStr};
	__property Align  = {default=0};
	__property BorderStyle  = {default=1};
	__property Color  = {default=-2147483643};
	__property Ctl3D ;
	__property Anchors  = {default=3};
	__property BiDiMode ;
	__property Constraints ;
	__property DragKind  = {default=0};
	__property ParentBiDiMode  = {default=1};
	__property DragCursor  = {default=-12};
	__property DragMode  = {default=0};
	__property Enabled  = {default=1};
	__property ExtendedSelect  = {default=1};
	__property TAHMFilterOptions FilterOptions = {read=FFilterOptions, write=SeTAHMFilterOptions, default=15};
	__property Font ;
	__property IntegralHeight  = {default=0};
	__property ItemHeight ;
	__property MultiSelect  = {default=0};
	__property ParentColor  = {default=0};
	__property ParentCtl3D  = {default=1};
	__property ParentFont  = {default=1};
	__property ParentShowHint  = {default=1};
	__property PopupMenu ;
	__property ShowHint ;
	__property TabOrder  = {default=-1};
	__property TabStop  = {default=1};
	__property TabWidth  = {default=0};
	__property Visible  = {default=1};
	__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];
	AnsiString 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 Types::TRect &Rect, Windows::TOwnerDrawState State);
	void __fastcall ReBuild(void);
	
__published:
	__property AnsiString About = {read=FAboutStr, write=FAboutStr};
	__property Align  = {default=0};
	__property Color  = {default=-2147483643};
	__property Ctl3D ;
	__property Anchors  = {default=3};
	__property BiDiMode ;
	__property Constraints ;
	__property DragKind  = {default=0};
	__property ParentBiDiMode  = {default=1};
	__property DragMode  = {default=0};
	__property DragCursor  = {default=-12};
	__property DropDownCount  = {default=8};
	__property Enabled  = {default=1};
	__property TAHMFilterOptions FilterOptions = {read=FFilterOptions, write=SeTAHMFilterOptions, default=15};
	__property Font ;
	__property MaxLength  = {default=0};
	__property ParentColor  = {default=0};
	__property ParentCtl3D  = {default=1};
	__property ParentFont  = {default=1};
	__property ParentShowHint  = {default=1};
	__property PopupMenu ;
	__property ShowHint ;
	__property TabOrder  = {default=-1};
	__property TabStop  = {default=1};
	__property Text ;
	__property Visible  = {default=1};
	__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 */
using namespace Ahmtfontcontrols;
#pragma option pop	// -w-
#pragma option pop	// -Vx

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