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

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

#ifndef ahmticonctrlsHPP
#define ahmticonctrlsHPP

#pragma delphiheader begin
#pragma option push -w-
#pragma option push -Vx
#include <Dialogs.hpp>	// Pascal unit
#include <ahmstdclass.hpp>	// Pascal unit
#include <ShellAPI.hpp>	// Pascal unit
#include <Menus.hpp>	// Pascal unit
#include <StdCtrls.hpp>	// Pascal unit
#include <Graphics.hpp>	// Pascal unit
#include <Classes.hpp>	// Pascal unit
#include <Controls.hpp>	// Pascal unit
#include <Forms.hpp>	// Pascal unit
#include <SysUtils.hpp>	// Pascal unit
#include <Windows.hpp>	// Pascal unit
#include <SysInit.hpp>	// Pascal unit
#include <System.hpp>	// Pascal unit

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

namespace Ahmticonctrls
{
//-- type declarations -------------------------------------------------------
class DELPHICLASS TAHMIconCombo;
class PASCALIMPLEMENTATION TAHMIconCombo : public Stdctrls::TCustomComboBox 
{
	typedef Stdctrls::TCustomComboBox inherited;
	
private:
	AnsiString FAboutStr;
	AnsiString FFileName;
	Graphics::TIcon* FIcon;
	int FNumberOfIcons;
	Classes::TNotifyEvent FOnFileChange;
	void __fastcall SetIconDetails(void);
	void __fastcall SetIcon(Graphics::TIcon* Value);
	Graphics::TIcon* __fastcall GetIcon(void);
	int __fastcall GetIconIndex(void);
	void __fastcall SetIconIndex(int Value);
	
protected:
	void __fastcall SetFileName(AnsiString Value);
	virtual void __fastcall MeasureItem(int Index, int &Height);
	virtual void __fastcall DrawItem(int Index, const Types::TRect &Rect, Windows::TOwnerDrawState State);
	virtual void __fastcall CreateParams(Controls::TCreateParams &Params);
	virtual void __fastcall CreateWnd(void);
	
public:
	__fastcall virtual TAHMIconCombo(Classes::TComponent* AOwner);
	virtual void __fastcall Loaded(void);
	__fastcall virtual ~TAHMIconCombo(void);
	
__published:
	__property AnsiString About = {read=FAboutStr, write=FAboutStr};
	__property int IconIndex = {read=GetIconIndex, write=SetIconIndex, nodefault};
	__property Graphics::TIcon* Icon = {read=GetIcon, write=SetIcon, stored=false};
	__property AnsiString FileName = {read=FFileName, write=SetFileName};
	__property int NumberOfIcons = {read=FNumberOfIcons, default=-1};
	__property Classes::TNotifyEvent OnFileChange = {read=FOnFileChange, write=FOnFileChange};
	__property Color  = {default=-2147483643};
	__property Ctl3D ;
	__property DragMode  = {default=0};
	__property DragCursor  = {default=-12};
	__property DropDownCount  = {default=5};
	__property Enabled  = {default=1};
	__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 OnClick ;
	__property OnDblClick ;
	__property OnDragDrop ;
	__property OnDragOver ;
	__property OnDropDown ;
	__property OnEndDrag ;
	__property OnEnter ;
	__property OnExit ;
	__property OnKeyDown ;
	__property OnKeyPress ;
	__property OnKeyUp ;
public:
	#pragma option push -w-inl
	/* TWinControl.CreateParented */ inline __fastcall TAHMIconCombo(HWND ParentWindow) : Stdctrls::TCustomComboBox(ParentWindow) { }
	#pragma option pop
	
};


class DELPHICLASS TAHMIconListbox;
class PASCALIMPLEMENTATION TAHMIconListbox : public Stdctrls::TCustomListBox 
{
	typedef Stdctrls::TCustomListBox inherited;
	
private:
	AnsiString FAboutStr;
	AnsiString FFileName;
	bool FLock;
	int FNumberOfIcons;
	int FItemWidth;
	int FXIcons;
	int FYIcons;
	Classes::TNotifyEvent FOnChange;
	Classes::TNotifyEvent FOnFileChange;
	Graphics::TIcon* FIcon;
	void __fastcall SetIconDetails(void);
	void __fastcall ResetSize(void);
	void __fastcall SetIcon(Graphics::TIcon* Value);
	Graphics::TIcon* __fastcall GetIcon(void);
	int __fastcall GetIconIndex(void);
	void __fastcall SetIconIndex(int Value);
	
protected:
	void __fastcall SetFileName(AnsiString Value);
	void __fastcall SetXIcons(int Value);
	void __fastcall SetYIcons(int Value);
	virtual void __fastcall MeasureItem(int Index, int &Height);
	virtual void __fastcall DrawItem(int Index, const Types::TRect &Rect, Windows::TOwnerDrawState State);
	virtual void __fastcall CreateParams(Controls::TCreateParams &Params);
	virtual void __fastcall CreateWnd(void);
	
public:
	__fastcall virtual TAHMIconListbox(Classes::TComponent* AOwner);
	virtual void __fastcall Loaded(void);
	__fastcall virtual ~TAHMIconListbox(void);
	
__published:
	__property int IconIndex = {read=GetIconIndex, write=SetIconIndex, nodefault};
	__property Graphics::TIcon* Icon = {read=GetIcon, write=SetIcon, stored=false};
	__property AnsiString About = {read=FAboutStr, write=FAboutStr};
	__property AnsiString FileName = {read=FFileName, write=SetFileName};
	__property int NumberOfIcons = {read=FNumberOfIcons, default=-1};
	__property int XIcons = {read=FXIcons, write=SetXIcons, default=4};
	__property int YIcons = {read=FYIcons, write=SetYIcons, default=1};
	__property Classes::TNotifyEvent OnFileChange = {read=FOnFileChange, write=FOnFileChange};
	__property Align  = {default=0};
	__property Color  = {default=-2147483643};
	__property Ctl3D ;
	__property DragMode  = {default=0};
	__property DragCursor  = {default=-12};
	__property Enabled  = {default=1};
	__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 Classes::TNotifyEvent OnChange = {read=FOnChange, write=FOnChange};
	__property OnClick ;
	__property OnDblClick ;
	__property OnDragDrop ;
	__property OnDragOver ;
	__property OnEndDrag ;
	__property OnEnter ;
	__property OnExit ;
	__property OnKeyDown ;
	__property OnKeyPress ;
	__property OnKeyUp ;
public:
	#pragma option push -w-inl
	/* TWinControl.CreateParented */ inline __fastcall TAHMIconListbox(HWND ParentWindow) : Stdctrls::TCustomListBox(ParentWindow) { }
	#pragma option pop
	
};


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

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

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