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

// (DO NOT EDIT: machine generated header) 'AHMTColorCombo.pas' rev: 5.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;
	Ahmstdclass::TAHMAboutSControlStr 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 Windows::TRect &Rect, Windows::TOwnerDrawState State
		);
	__property Style ;
	__property Items ;
	__property MaxLength ;
	__property Sorted ;
	__property Text ;
	__property OnMeasureItem ;
	
public:
	__fastcall virtual TAHMColorCombo(Classes::TComponent* AOwner);
	__property AnsiString SelectedColorName = {read=GetSelectedColorName};
	
__published:
	__property Ahmstdclass::TAHMAboutSControlStr 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 ;
	__property Ctl3D ;
	__property ItemIndex ;
	__property DragMode ;
	__property DragCursor ;
	__property DropDownCount ;
	__property Enabled ;
	__property Font ;
	__property ItemHeight ;
	__property ParentColor ;
	__property ParentCtl3D ;
	__property ParentFont ;
	__property ParentShowHint ;
	__property PopupMenu ;
	__property ShowHint ;
	__property TabOrder ;
	__property TabStop ;
	__property Visible ;
	__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
	
};


struct TAHMColorEntry
{
	Graphics::TColor Value;
	AnsiString Name;
} ;

typedef TAHMColorEntry AHMTColorCombo__2[42];

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

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

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