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

// (DO NOT EDIT: machine generated header) 'ahmtcolorcombo.pas' rev: 6.00

#ifndef ahmtcolorcomboHPP
#define ahmtcolorcomboHPP

#pragma delphiheader begin
#pragma option push -w-
#pragma option push -Vx
#include <Menus.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 <SysUtils.hpp>	// Pascal unit
#include <SysInit.hpp>	// Pascal unit
#include <System.hpp>	// Pascal unit

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

namespace Ahmtcolorcombo
{
//-- type declarations -------------------------------------------------------
typedef void __fastcall (__closure *TAHMOnSelectColor)(System::TObject* Sender, int Index, Graphics::TColor &Color, AnsiString &ColorName);

class DELPHICLASS TAHMColorCombo;
class PASCALIMPLEMENTATION TAHMColorCombo : public Stdctrls::TCustomComboBox 
{
	typedef Stdctrls::TCustomComboBox inherited;
	
private:
	int FPictureWidth;
	Graphics::TColor FSelectedColor;
	AnsiString FAboutStr;
	TAHMOnSelectColor FOnSelectColor;
	bool FSystemColors;
	AnsiString __fastcall GetSelectedColorName();
	int __fastcall GetPictureWidth(void);
	void __fastcall SetPictureWidth(int PictWidth);
	void __fastcall SetsystemColors(const bool Value);
	void __fastcall DrawColors(void);
	AnsiString __fastcall GetColorbyName();
	void __fastcall SetColorByName(const AnsiString Value);
	Graphics::TColor __fastcall GetSelectedColor(void);
	void __fastcall SetSelectedColor(const Graphics::TColor Value);
	
protected:
	DYNAMIC void __fastcall Click(void);
	virtual void __fastcall CreateWnd(void);
	virtual void __fastcall GetColor(int Index, Graphics::TColor &Color, AnsiString &ColorName);
	virtual void __fastcall DrawItem(int Index, const Types::TRect &Rect, Windows::TOwnerDrawState State);
	__property Style  = {default=0};
	__property Items ;
	__property MaxLength  = {default=0};
	__property Sorted  = {default=0};
	__property Text ;
	__property OnMeasureItem ;
	
public:
	__fastcall virtual TAHMColorCombo(Classes::TComponent* AOwner);
	__property AnsiString SelectedColorName = {read=GetSelectedColorName};
	
__published:
	__property AnsiString About = {read=FAboutStr, write=FAboutStr};
	__property AnsiString ColorByName = {read=GetColorbyName, write=SetColorByName};
	__property Graphics::TColor ColorSelected = {read=GetSelectedColor, write=SetSelectedColor, default=0};
	__property int ColorDisplayWidth = {read=GetPictureWidth, write=SetPictureWidth, nodefault};
	__property TAHMOnSelectColor OnSelectColor = {read=FOnSelectColor, write=FOnSelectColor};
	__property bool SystemColors = {read=FSystemColors, write=SetsystemColors, stored=true, nodefault};
	__property Color  = {default=-2147483643};
	__property Ctl3D ;
	__property ItemIndex ;
	__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 Font ;
	__property ItemHeight ;
	__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 Visible  = {default=1};
	__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 ;
public:
	#pragma option push -w-inl
	/* TCustomComboBox.Destroy */ inline __fastcall virtual ~TAHMColorCombo(void) { }
	#pragma option pop
	
public:
	#pragma option push -w-inl
	/* TWinControl.CreateParented */ inline __fastcall TAHMColorCombo(HWND ParentWindow) : Stdctrls::TCustomComboBox(ParentWindow) { }
	#pragma option pop
	
};


#pragma pack(push, 4)
struct TAHMColorEntry
{
	Graphics::TColor Value;
	AnsiString name;
} ;
#pragma pack(pop)

typedef TAHMColorEntry ahmtcolorcombo__2[42];

//-- var, const, procedure ---------------------------------------------------
extern PACKAGE TAHMColorEntry Colors[42];

}	/* namespace Ahmtcolorcombo */
using namespace Ahmtcolorcombo;
#pragma option pop	// -w-
#pragma option pop	// -Vx

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