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

// (DO NOT EDIT: machine generated header) 'PSCombo.pas' rev: 5.00

#ifndef PSComboHPP
#define PSComboHPP

#pragma delphiheader begin
#pragma option push -w-
#pragma option push -Vx
#include <Menus.hpp>	// Pascal unit
#include <PSCommon.hpp>	// Pascal unit
#include <PSPreview.hpp>	// Pascal unit
#include <StdCtrls.hpp>	// Pascal unit
#include <Dialogs.hpp>	// Pascal unit
#include <Forms.hpp>	// Pascal unit
#include <Controls.hpp>	// Pascal unit
#include <Graphics.hpp>	// Pascal unit
#include <Classes.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 Pscombo
{
//-- type declarations -------------------------------------------------------
class DELPHICLASS TPreviewComboBox;
class PASCALIMPLEMENTATION TPreviewComboBox : public Stdctrls::TCustomComboBox 
{
	typedef Stdctrls::TCustomComboBox inherited;
	
private:
	Pspreview::TCustomPreview* FPreview;
	Classes::TNotifyEvent FOnUpdate;
	void __fastcall SetPreview(const Pspreview::TCustomPreview* Value);
	AnsiString __fastcall CleanText();
	AnsiString __fastcall CleanSelect();
	AnsiString __fastcall GetScales();
	
protected:
	DYNAMIC void __fastcall DropDown(void);
	DYNAMIC void __fastcall Click(void);
	DYNAMIC void __fastcall KeyDown(Word &Key, Classes::TShiftState Shift);
	DYNAMIC void __fastcall KeyPress(char &Key);
	DYNAMIC void __fastcall DoExit(void);
	virtual void __fastcall Notification(Classes::TComponent* AComponent, Classes::TOperation Operation
		);
	
public:
	__fastcall virtual TPreviewComboBox(Classes::TComponent* AOwner);
	__fastcall virtual ~TPreviewComboBox(void);
	virtual void __fastcall Update(void);
	
__published:
	__property Pspreview::TCustomPreview* Preview = {read=FPreview, write=SetPreview};
	__property Color ;
	__property Ctl3D ;
	__property Font ;
	__property ParentColor ;
	__property ParentCtl3D ;
	__property ParentFont ;
	__property ParentShowHint ;
	__property PopupMenu ;
	__property ShowHint ;
	__property TabOrder ;
	__property Visible ;
	__property Classes::TNotifyEvent OnUpdate = {read=FOnUpdate, write=FOnUpdate};
public:
	#pragma option push -w-inl
	/* TWinControl.CreateParented */ inline __fastcall TPreviewComboBox(HWND ParentWindow) : Stdctrls::TCustomComboBox(
		ParentWindow) { }
	#pragma option pop
	
};


//-- var, const, procedure ---------------------------------------------------
extern PACKAGE void __fastcall Register(void);

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

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