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

// (DO NOT EDIT: machine generated header) 'AHMTMsgDlgHolder.pas' rev: 3.00

#ifndef AHMTMsgDlgHolderHPP
#define AHMTMsgDlgHolderHPP
#include <AHMSystemClass.hpp>
#include <StdCtrls.hpp>
#include <ExtCtrls.hpp>
#include <Dialogs.hpp>
#include <Forms.hpp>
#include <Controls.hpp>
#include <Graphics.hpp>
#include <Classes.hpp>
#include <SysUtils.hpp>
#include <Messages.hpp>
#include <Windows.hpp>
#include <SysInit.hpp>
#include <System.hpp>

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

namespace Ahmtmsgdlgholder
{
//-- type declarations -------------------------------------------------------
typedef void __fastcall (__closure *TAHMMsgDlgEvent)(System::TObject* Sender, System::AnsiString &Message
	, System::AnsiString &EditText);

class DELPHICLASS TAHMDlgEditClass;
class PASCALIMPLEMENTATION TAHMDlgEditClass : public Classes::TPersistent 
{
	typedef Classes::TPersistent inherited;
	
private:
	char FPassWordChar;
	int FMaxLength;
	System::AnsiString FText;
	System::AnsiString FCaption;
	Graphics::TColor FColor;
	TEditCharCase FCharCase;
	Graphics::TColor FFOntColor;
	void __fastcall SetCaption(const System::AnsiString Value);
	void __fastcall SetCharCase(const Stdctrls::TEditCharCase Value);
	void __fastcall SetColor(const Graphics::TColor Value);
	void __fastcall SetMaxLength(const int Value);
	void __fastcall SetPasswordChar(const char Value);
	void __fastcall SetText(const System::AnsiString Value);
	void __fastcall SetFontColor(const Graphics::TColor Value);
	
public:
	__fastcall virtual TAHMDlgEditClass(void);
	
__published:
	__property Graphics::TColor FontColor = {read=FFOntColor, write=SetFontColor, default=-2147483640};
		
	__property Graphics::TColor Color = {read=FColor, write=SetColor, default=-2147483643};
	__property System::AnsiString Caption = {read=FCaption, write=SetCaption};
	__property char PasswordChar = {read=FPassWordChar, write=SetPasswordChar, nodefault};
	__property System::AnsiString Text = {read=FText, write=SetText};
	__property int MaxLength = {read=FMaxLength, write=SetMaxLength, default=0};
	__property Stdctrls::TEditCharCase CharCase = {read=FCharCase, write=SetCharCase, default=0};
public:
		
	/* TPersistent.Destroy */ __fastcall virtual ~TAHMDlgEditClass(void) { }
	
};

class DELPHICLASS TAHMBaseDlgButtonClass;
class PASCALIMPLEMENTATION TAHMBaseDlgButtonClass : public Classes::TPersistent 
{
	typedef Classes::TPersistent inherited;
	
private:
	int FNumGlyphs;
	Graphics::TBitmap* FGlyph;
	System::AnsiString FCaption;
	bool FVisible;
	bool FEnabled;
	void __fastcall SetCaption(const System::AnsiString Value);
	void __fastcall SetEnabled(const bool Value);
	void __fastcall SetVisible(const bool Value);
	void __fastcall SetGlyph(const Graphics::TBitmap* Value);
	void __fastcall SetNumGlyphs(const int Value);
	
public:
	__fastcall TAHMBaseDlgButtonClass(void);
	__fastcall virtual ~TAHMBaseDlgButtonClass(void);
	
__published:
	__property Graphics::TBitmap* Glyph = {read=FGlyph, write=SetGlyph};
	__property int NumGlyphs = {read=FNumGlyphs, write=SetNumGlyphs, default=1};
	__property System::AnsiString Caption = {read=FCaption, write=SetCaption};
	__property bool Visible = {read=FVisible, write=SetVisible, default=1};
	__property bool Enabled = {read=FEnabled, write=SetEnabled, default=1};
};

class DELPHICLASS TAHMMsgDlgButtonClass;
class DELPHICLASS TAHMMsgDlg;
class DELPHICLASS TAHMMsgDlgHolder;
class DELPHICLASS TAHMMsgDlgs;
class PASCALIMPLEMENTATION TAHMMsgDlgs : public Classes::TCollection 
{
	typedef Classes::TCollection inherited;
	
private:
	TAHMMsgDlgHolder* FAHMMsgDlgHolder;
	TAHMMsgDlg* __fastcall GetAHMMsgDlg(int Index);
	void __fastcall SetAHMMsgDlg(int Index, TAHMMsgDlg* Value);
	
protected:
	DYNAMIC Classes::TPersistent* __fastcall GetOwner(void);
	
public:
	__fastcall TAHMMsgDlgs(TAHMMsgDlgHolder* AOwner);
	HIDESBASE TAHMMsgDlg* __fastcall Add(void);
	bool __fastcall Delete(int Index);
	__property TAHMMsgDlgHolder* Owner = {read=FAHMMsgDlgHolder};
	__property TAHMMsgDlg* Items[int Index] = {read=GetAHMMsgDlg, write=SetAHMMsgDlg/*, default*/};
public:
		
	/* TCollection.Destroy */ __fastcall virtual ~TAHMMsgDlgs(void) { }
	
};

class PASCALIMPLEMENTATION TAHMMsgDlgHolder : public Ahmsystemclass::TAHMSystemsComponent 
{
	typedef Ahmsystemclass::TAHMSystemsComponent inherited;
	
private:
	TAHMMsgDlgs* FAHMMsgDlgs;
	TAHMMsgDlgEvent FBeforePopup;
	void __fastcall SetAHMMsgDlgs(TAHMMsgDlgs* Value);
	
public:
	__fastcall virtual TAHMMsgDlgHolder(Classes::TComponent* AOwner);
	__fastcall virtual ~TAHMMsgDlgHolder(void);
	System::AnsiString __fastcall Execute(int Index);
	
__published:
	__property TAHMMsgDlgEvent BeforePopup = {read=FBeforePopup, write=FBeforePopup};
	__property TAHMMsgDlgs* Messages = {read=FAHMMsgDlgs, write=SetAHMMsgDlgs};
};

class DELPHICLASS TAHMDlgHelpButtonClass;
class PASCALIMPLEMENTATION TAHMDlgHelpButtonClass : public Ahmtmsgdlgholder::TAHMBaseDlgButtonClass 
	
{
	typedef Ahmtmsgdlgholder::TAHMBaseDlgButtonClass inherited;
	
private:
	int FHelpContext;
	
public:
	__fastcall TAHMDlgHelpButtonClass(void);
	
__published:
	__property int HelpContext = {read=FHelpContext, write=FHelpContext, default=0};
public:
	/* TAHMBaseDlgButtonClass.Destroy */ __fastcall virtual ~TAHMDlgHelpButtonClass(void) { }
	
};

class PASCALIMPLEMENTATION TAHMMsgDlg : public Classes::TCollectionItem 
{
	typedef Classes::TCollectionItem inherited;
	
private:
	TAHMMsgDlgHolder* FAHMMsgDlgHolder;
	System::AnsiString FMessage;
	System::AnsiString FCaption;
	Graphics::TFont* FFont;
	TAHMBeeptype FBeepType;
	TAHMMsgDlgButtonClass* FMsgButton1;
	TAHMMsgDlgButtonClass* FMsgButton2;
	TAHMMsgDlgButtonClass* FMsgButton3;
	TAHMDlgHelpButtonClass* FHelpButton;
	int FButtonWidth;
	int FFormWidth;
	Classes::TNotifyEvent FOnBtn1Click;
	Classes::TNotifyEvent FOnBtn3Click;
	Classes::TNotifyEvent FOnBtn2Click;
	Classes::TNotifyEvent FOnHelpClick;
	TMsgDlgType FMsgType;
	Graphics::TIcon* FIcon;
	Classes::TNotifyEvent FOnmrAll;
	Classes::TNotifyEvent FOnmrCancel;
	Classes::TNotifyEvent FOnmrYes;
	Classes::TNotifyEvent FOnmrIgnore;
	Classes::TNotifyEvent FOnmrNone;
	Classes::TNotifyEvent FOnmrYesToAll;
	Classes::TNotifyEvent FOnmrOk;
	Classes::TNotifyEvent FOnmrNoToAll;
	Classes::TNotifyEvent FOnmrNo;
	Classes::TNotifyEvent FOnmrRetry;
	Classes::TNotifyEvent FOnmrAbort;
	TAHMMsgDlgEvent FBeforePopup;
	TAHMDlgEditClass* FEditBox;
	System::AnsiString FReturn;
	void __fastcall SetFont(const Graphics::TFont* Value);
	void __fastcall SetMessage(const System::AnsiString Value);
	void __fastcall SetButtonWidth(const int Value);
	void __fastcall SetFormWidth(const int Value);
	void __fastcall Button1Click(System::TObject* Sender);
	void __fastcall Button2Click(System::TObject* Sender);
	void __fastcall Button3Click(System::TObject* Sender);
	void __fastcall HelpButtonClick(System::TObject* Sender);
	void __fastcall SetMessageType(const Dialogs::TMsgDlgType Value);
	void __fastcall SetIcon(const Graphics::TIcon* Value);
	void __fastcall ProcessMessages(Forms::TModalResult Value);
	
protected:
	virtual System::AnsiString __fastcall GetDisplayName(void);
	
public:
	__fastcall virtual TAHMMsgDlg(Classes::TCollection* Collection);
	virtual void __fastcall Assign(Classes::TPersistent* Source);
	__property TAHMMsgDlgHolder* Owner = {read=FAHMMsgDlgHolder};
	__property System::AnsiString DisplayName = {read=GetDisplayName};
	__fastcall virtual ~TAHMMsgDlg(void);
	System::AnsiString __fastcall Execute(void);
	__property System::AnsiString Return = {read=FReturn};
	
__published:
	__property int Buttonwidth = {read=FButtonWidth, write=SetButtonWidth, default=80};
	__property Ahmsystemclass::TAHMBeeptype Sound = {read=FBeepType, write=FBeepType, default=0};
	__property TAHMDlgEditClass* Editbox = {read=FEditBox, write=FEditBox};
	__property TAHMMsgDlgButtonClass* MsgButton1 = {read=FMsgButton1, write=FMsgButton1};
	__property TAHMMsgDlgButtonClass* MsgButton2 = {read=FMsgButton2, write=FMsgButton2};
	__property TAHMMsgDlgButtonClass* MsgButton3 = {read=FMsgButton3, write=FMsgButton3};
	__property Dialogs::TMsgDlgType MsgType = {read=FMsgType, write=SetMessageType, default=2};
	__property TAHMDlgHelpButtonClass* HelpButton = {read=FHelpButton, write=FHelpButton};
	__property int FormWidth = {read=FFormWidth, write=SetFormWidth, default=320};
	__property System::AnsiString Message = {read=FMessage, write=SetMessage};
	__property Graphics::TIcon* CustomIcon = {read=FIcon, write=SetIcon};
	__property System::AnsiString Caption = {read=FCaption, write=FCaption};
	__property Graphics::TFont* Font = {read=FFont, write=SetFont};
	__property TAHMMsgDlgEvent BeforePopup = {read=FBeforePopup, write=FBeforePopup};
	__property Classes::TNotifyEvent OnBtn1Click = {read=FOnBtn1Click, write=FOnBtn1Click};
	__property Classes::TNotifyEvent OnBtn2Click = {read=FOnBtn2Click, write=FOnBtn2Click};
	__property Classes::TNotifyEvent OnBtn3Click = {read=FOnBtn3Click, write=FOnBtn3Click};
	__property Classes::TNotifyEvent OnHelpClick = {read=FOnHelpClick, write=FOnHelpClick};
	__property Classes::TNotifyEvent OnmrNone = {read=FOnmrNone, write=FOnmrNone};
	__property Classes::TNotifyEvent OnmrAbort = {read=FOnmrAbort, write=FOnmrAbort};
	__property Classes::TNotifyEvent OnmrAll = {read=FOnmrAll, write=FOnmrAll};
	__property Classes::TNotifyEvent OnmrCancel = {read=FOnmrCancel, write=FOnmrCancel};
	__property Classes::TNotifyEvent OnmrIgnore = {read=FOnmrIgnore, write=FOnmrIgnore};
	__property Classes::TNotifyEvent OnmrNo = {read=FOnmrNo, write=FOnmrNo};
	__property Classes::TNotifyEvent OnmrOk = {read=FOnmrOk, write=FOnmrOk};
	__property Classes::TNotifyEvent OnmrRetry = {read=FOnmrRetry, write=FOnmrRetry};
	__property Classes::TNotifyEvent OnmrYes = {read=FOnmrYes, write=FOnmrYes};
	__property Classes::TNotifyEvent OnmrNoToAll = {read=FOnmrNoToAll, write=FOnmrNoToAll};
	__property Classes::TNotifyEvent OnmrYesToAll = {read=FOnmrYesToAll, write=FOnmrYesToAll};
};

class PASCALIMPLEMENTATION TAHMMsgDlgButtonClass : public Ahmtmsgdlgholder::TAHMBaseDlgButtonClass 
{
	typedef Ahmtmsgdlgholder::TAHMBaseDlgButtonClass inherited;
	
private:
	Forms::TModalResult FModalResult;
	bool FDefault;
	TAHMMsgDlg* FDialog;
	void __fastcall OnChangeDefault(System::TObject* Sender);
	void __fastcall SetDefault(const bool Value);
	
public:
	__fastcall virtual TAHMMsgDlgButtonClass(TAHMMsgDlg* ADialog);
	
__published:
	__property Forms::TModalResult ModalResult = {read=FModalResult, write=FModalResult, default=0};
	__property bool Default = {read=FDefault, write=SetDefault, nodefault};
public:
	/* TAHMBaseDlgButtonClass.Destroy */ __fastcall virtual ~TAHMMsgDlgButtonClass(void) { }
	
};

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

}	/* namespace Ahmtmsgdlgholder */
#if !defined(NO_IMPLICIT_NAMESPACE_USE)
using namespace Ahmtmsgdlgholder;
#endif
//-- end unit ----------------------------------------------------------------
#endif	// AHMTMsgDlgHolder
