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

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

#ifndef ahmtlookupeditHPP
#define ahmtlookupeditHPP

#pragma delphiheader begin
#pragma option push -w-
#pragma option push -Vx
#include <MaskUtils.hpp>	// Pascal unit
#include <Forms.hpp>	// Pascal unit
#include <StdCtrls.hpp>	// Pascal unit
#include <Buttons.hpp>	// Pascal unit
#include <Graphics.hpp>	// Pascal unit
#include <ahmstdclass.hpp>	// Pascal unit
#include <Menus.hpp>	// Pascal unit
#include <Mask.hpp>	// Pascal unit
#include <Classes.hpp>	// Pascal unit
#include <Controls.hpp>	// Pascal unit
#include <SysUtils.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 Ahmtlookupedit
{
//-- type declarations -------------------------------------------------------
class DELPHICLASS TAHMCustomLookupEdit;
class DELPHICLASS TAHMButtonClass;
class PASCALIMPLEMENTATION TAHMButtonClass : public Classes::TPersistent 
{
	typedef Classes::TPersistent inherited;
	
private:
	Buttons::TSpeedButton* FButton;
	Classes::TShortCut FShortCutKey;
	void __fastcall SetCaption(AnsiString value);
	void __fastcall SetVisible(bool value);
	void __fastcall SetEnabled(bool value);
	void __fastcall SetHint(AnsiString value);
	void __fastcall SetShowHint(bool value);
	void __fastcall SetNumGlyphs(int value);
	void __fastcall SetGlyph(Graphics::TBitmap* value);
	void __fastcall SetShortCutKey(Classes::TShortCut value);
	AnsiString __fastcall GetCaption();
	bool __fastcall GetVisible(void);
	bool __fastcall GetEnabled(void);
	AnsiString __fastcall GetHint();
	bool __fastcall GetShowHint(void);
	int __fastcall GetNumGlyphs(void);
	Graphics::TBitmap* __fastcall GetGlyph(void);
	
public:
	__fastcall TAHMButtonClass(Classes::TComponent* AOwner);
	
__published:
	__property AnsiString Caption = {read=GetCaption, write=SetCaption, stored=true};
	__property bool Visible = {read=GetVisible, write=SetVisible, stored=true, nodefault};
	__property bool Enabled = {read=GetEnabled, write=SetEnabled, stored=true, nodefault};
	__property AnsiString Hint = {read=GetHint, write=SetHint, stored=true};
	__property bool ShowHint = {read=GetShowHint, write=SetShowHint, stored=true, nodefault};
	__property int NumGlyphs = {read=GetNumGlyphs, write=SetNumGlyphs, stored=true, nodefault};
	__property Graphics::TBitmap* Glyph = {read=GetGlyph, write=SetGlyph, stored=true};
	__property Classes::TShortCut ShortCutKey = {read=FShortCutKey, write=SetShortCutKey, stored=true, nodefault};
public:
	#pragma option push -w-inl
	/* TPersistent.Destroy */ inline __fastcall virtual ~TAHMButtonClass(void) { }
	#pragma option pop
	
};


class PASCALIMPLEMENTATION TAHMCustomLookupEdit : public Mask::TCustomMaskEdit 
{
	typedef Mask::TCustomMaskEdit inherited;
	
private:
	Buttons::TSpeedButton* FEditButton2;
	Buttons::TSpeedButton* FEditButton1;
	TAHMButtonClass* FEditBClass2;
	TAHMButtonClass* FEditBClass1;
	AnsiString FAboutStr;
	Classes::TNotifyEvent FOnButton2Click;
	Classes::TNotifyEvent FOnButton1Click;
	Classes::TAlignment FAlignment;
	int __fastcall GetMinHeight(void);
	void __fastcall EditButton2Click(System::TObject* Sender);
	void __fastcall EditButton1Click(System::TObject* Sender);
	HIDESBASE MESSAGE void __fastcall WMSize(Messages::TWMSize &Message);
	HIDESBASE MESSAGE void __fastcall CMEnabledChanged(Messages::TMessage &Message);
	HIDESBASE MESSAGE void __fastcall CMEnter(Messages::TMessage &Message);
	void __fastcall SetAlignment(Classes::TAlignment Value);
	void __fastcall SetEditBClass2(TAHMButtonClass* value);
	void __fastcall SetEditBClass1(TAHMButtonClass* value);
	
protected:
	virtual void __fastcall CreateWnd(void);
	void __fastcall SetButtons(void);
	
public:
	void __fastcall SetEditRect(void);
	virtual void __fastcall CreateParams(Controls::TCreateParams &Params);
	__fastcall virtual TAHMCustomLookupEdit(Classes::TComponent* AOwner);
	__fastcall virtual ~TAHMCustomLookupEdit(void);
	virtual void __fastcall Loaded(void);
	DYNAMIC void __fastcall KeyDown(Word &Key, Classes::TShiftState Shift);
	DYNAMIC void __fastcall KeyPress(char &Key);
	__property TAHMButtonClass* EditButton2 = {read=FEditBClass2, write=SetEditBClass2, stored=true};
	__property TAHMButtonClass* EditButton1 = {read=FEditBClass1, write=SetEditBClass1, stored=true};
	__property Classes::TAlignment Alignment = {read=FAlignment, write=SetAlignment, default=0};
	__property Classes::TNotifyEvent OnButton2Click = {read=FOnButton2Click, write=FOnButton2Click};
	__property Classes::TNotifyEvent OnButton1Click = {read=FOnButton1Click, write=FOnButton1Click};
	
__published:
	__property AnsiString About = {read=FAboutStr, write=FAboutStr};
	__property Anchors  = {default=3};
	__property BevelEdges  = {default=15};
	__property BevelInner  = {index=0, default=2};
	__property BevelOuter  = {index=1, default=1};
	__property BevelKind  = {default=0};
	__property BevelWidth  = {default=1};
	__property BiDiMode ;
	__property Constraints ;
	__property DragKind  = {default=0};
	__property ParentBiDiMode  = {default=1};
	__property OnEndDock ;
	__property OnStartDock ;
	__property AutoSelect  = {default=1};
	__property AutoSize  = {default=1};
	__property BorderStyle  = {default=1};
	__property CharCase  = {default=0};
	__property Color  = {default=-2147483643};
	__property Ctl3D ;
	__property DragCursor  = {default=-12};
	__property DragMode  = {default=0};
	__property Enabled  = {default=1};
	__property EditMask ;
	__property Font ;
	__property ImeMode  = {default=3};
	__property ImeName ;
	__property MaxLength  = {default=0};
	__property ParentColor  = {default=0};
	__property ParentCtl3D  = {default=1};
	__property ParentFont  = {default=1};
	__property ParentShowHint  = {default=1};
	__property PasswordChar  = {default=0};
	__property PopupMenu ;
	__property ReadOnly  = {default=0};
	__property ShowHint ;
	__property TabOrder  = {default=-1};
	__property TabStop  = {default=1};
	__property Text ;
	__property Visible  = {default=1};
	__property OnChange ;
	__property OnClick ;
	__property OnDblClick ;
	__property OnDragDrop ;
	__property OnDragOver ;
	__property OnEndDrag ;
	__property OnEnter ;
	__property OnExit ;
	__property OnKeyDown ;
	__property OnKeyPress ;
	__property OnKeyUp ;
	__property OnMouseDown ;
	__property OnMouseMove ;
	__property OnMouseUp ;
	__property OnStartDrag ;
public:
	#pragma option push -w-inl
	/* TWinControl.CreateParented */ inline __fastcall TAHMCustomLookupEdit(HWND ParentWindow) : Mask::TCustomMaskEdit(ParentWindow) { }
	#pragma option pop
	
};


class DELPHICLASS TAHMLookupEdit;
class PASCALIMPLEMENTATION TAHMLookupEdit : public TAHMCustomLookupEdit 
{
	typedef TAHMCustomLookupEdit inherited;
	
public:
	__fastcall virtual TAHMLookupEdit(Classes::TComponent* AOwner);
	
__published:
	__property EditButton1 ;
	__property OnButton1Click ;
	__property EditButton2 ;
	__property OnButton2Click ;
public:
	#pragma option push -w-inl
	/* TAHMCustomLookupEdit.Destroy */ inline __fastcall virtual ~TAHMLookupEdit(void) { }
	#pragma option pop
	
public:
	#pragma option push -w-inl
	/* TWinControl.CreateParented */ inline __fastcall TAHMLookupEdit(HWND ParentWindow) : TAHMCustomLookupEdit(ParentWindow) { }
	#pragma option pop
	
};


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

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

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