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

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

#ifndef HSVBoxHPP
#define HSVBoxHPP
#include <Menus.hpp>
#include <iedefs.hpp>
#include <ImageEnProc.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 Hsvbox
{
//-- type declarations -------------------------------------------------------
class DELPHICLASS THSVBox;
class PASCALIMPLEMENTATION THSVBox : public Controls::TCustomControl 
{
	typedef Controls::TCustomControl inherited;
	
private:
	int fHue;
	int fSat;
	int fVal;
	Byte fRed;
	Byte fGreen;
	Byte fBlue;
	Graphics::TBitmap* bitmap;
	Graphics::TColor fBackground;
	Classes::TNotifyEvent fOnChange;
	int fMouseSel;
	Graphics::TColor fColor;
	
protected:
	void __fastcall SetHue(int h);
	void __fastcall SetSat(int s);
	void __fastcall SetVal(int v);
	HIDESBASE MESSAGE void __fastcall WMSize(Messages::TWMSize &Message);
	HIDESBASE MESSAGE void __fastcall WMEraseBkgnd(Messages::TMessage &Message);
	void __fastcall SetBackground(Graphics::TColor bk);
	void __fastcall DrawValSat(void);
	void __fastcall DrawHue(void);
	void __fastcall DrawGrips(void);
	DYNAMIC void __fastcall MouseMove(Classes::TShiftState Shift, int X, int Y);
	DYNAMIC void __fastcall MouseDown(Controls::TMouseButton Button, Classes::TShiftState Shift, int X, 
		int Y);
	DYNAMIC void __fastcall MouseUp(Controls::TMouseButton Button, Classes::TShiftState Shift, int X, int 
		Y);
	void __fastcall XMouseMove(int X, int Y);
	
public:
	virtual void __fastcall Paint(void);
	__fastcall virtual THSVBox(Classes::TComponent* Owner);
	__fastcall virtual ~THSVBox(void);
	void __fastcall SetRGB(Byte r, Byte g, Byte b);
	HIDESBASE void __fastcall SetColor(Graphics::TColor cl);
	
__published:
	__property int Hue = {read=fHue, write=SetHue, default=0};
	__property int Sat = {read=fSat, write=SetSat, default=0};
	__property int Val = {read=fVal, write=SetVal, default=0};
	__property Byte Red = {read=fRed, nodefault};
	__property Byte Green = {read=fGreen, nodefault};
	__property Byte Blue = {read=fBlue, nodefault};
	__property Graphics::TColor Color = {read=fColor, nodefault};
	__property Graphics::TColor Background = {read=fBackground, write=SetBackground, default=-2147483633
		};
	__property Classes::TNotifyEvent OnChange = {read=fOnChange, write=fOnChange};
	__property Align ;
	__property DragCursor ;
	__property DragMode ;
	__property Enabled ;
	__property ParentShowHint ;
	__property PopupMenu ;
	__property ShowHint ;
	__property Visible ;
	__property OnClick ;
	__property OnDblClick ;
	__property OnDragDrop ;
	__property OnDragOver ;
	__property OnEndDrag ;
	__property OnMouseDown ;
	__property OnMouseMove ;
	__property OnMouseUp ;
	__property OnStartDrag ;
public:
	/* TWinControl.CreateParented */ __fastcall THSVBox(HWND ParentWindow) : Controls::TCustomControl(ParentWindow
		) { }
	
};

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

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