// CodeGear C++Builder
// Copyright (c) 1995, 2015 by Embarcadero Technologies, Inc.
// All rights reserved

// (DO NOT EDIT: machine generated header) 'histogrambox.pas' rev: 30.00 (Windows)

#ifndef HistogramboxHPP
#define HistogramboxHPP

#pragma delphiheader begin
#pragma option push
#pragma option -w-      // All warnings off
#pragma option -Vx      // Zero-length empty class member 
#pragma pack(push,8)
#include <System.hpp>
#include <SysInit.hpp>
#include <Winapi.Windows.hpp>
#include <Winapi.Messages.hpp>
#include <System.SysUtils.hpp>
#include <System.Classes.hpp>
#include <Vcl.Graphics.hpp>
#include <Vcl.Controls.hpp>
#include <Vcl.Forms.hpp>
#include <imageenproc.hpp>
#include <hyiedefs.hpp>
#include <System.UITypes.hpp>
#include <Vcl.Menus.hpp>

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

namespace Histogrambox
{
//-- forward type declarations -----------------------------------------------
class DELPHICLASS THistogramBox;
//-- type declarations -------------------------------------------------------
enum DECLSPEC_DENUM Histogrambox__1 : unsigned char { hkRed, hkGreen, hkBlue, hkGray };

typedef System::Set<Histogrambox__1, Histogrambox__1::hkRed, Histogrambox__1::hkGray> THistogramKind;

enum DECLSPEC_DENUM Histogrambox__2 : unsigned char { hlVertical, hlHorizontal };

typedef System::Set<Histogrambox__2, Histogrambox__2::hlVertical, Histogrambox__2::hlHorizontal> THistogramLabels;

enum DECLSPEC_DENUM THistogramStyle : unsigned char { hsBars, hsLines };

class PASCALIMPLEMENTATION THistogramBox : public Vcl::Controls::TCustomControl
{
	typedef Vcl::Controls::TCustomControl inherited;
	
private:
	Vcl::Graphics::TBitmap* Bitmap;
	System::Uitypes::TColor fBackground;
	Imageenproc::TImageEnProc* fAIEP;
	THistogramKind fHistKind;
	THistogramLabels fLabels;
	bool fCompBar;
	THistogramStyle fHistogramStyle;
	int fHistogramXPos;
	System::Uitypes::TColor fGrayColor;
	void __fastcall SetBackground(System::Uitypes::TColor bk);
	void __fastcall SetLabels(THistogramLabels v);
	void __fastcall SetCompBar(bool v);
	void __fastcall SetHistogramStyle(THistogramStyle v);
	void __fastcall SetHistogramKind(THistogramKind v);
	void __fastcall SetAIEP(Imageenproc::TImageEnProc* v);
	THistogramKind __fastcall GetHistogramKind(void);
	THistogramLabels __fastcall GetLabels(void);
	
protected:
	HIDESBASE MESSAGE void __fastcall WMSize(Winapi::Messages::TWMSize &Message);
	HIDESBASE MESSAGE void __fastcall WMEraseBkgnd(Winapi::Messages::TMessage &Message);
	DYNAMIC void __fastcall MouseMove(System::Classes::TShiftState Shift, int X, int Y);
	DYNAMIC void __fastcall MouseDown(System::Uitypes::TMouseButton Button, System::Classes::TShiftState Shift, int X, int Y);
	DYNAMIC void __fastcall MouseUp(System::Uitypes::TMouseButton Button, System::Classes::TShiftState Shift, int X, int Y);
	virtual void __fastcall Notification(System::Classes::TComponent* AComponent, System::Classes::TOperation Operation);
	
public:
	virtual void __fastcall Paint(void);
	__fastcall virtual THistogramBox(System::Classes::TComponent* Owner);
	__fastcall virtual ~THistogramBox(void);
	virtual void __fastcall Update(void);
	__property int HistogramXPos = {read=fHistogramXPos, nodefault};
	
__published:
	__property Imageenproc::TImageEnProc* AttachedImageEnProc = {read=fAIEP, write=SetAIEP};
	__property System::Uitypes::TColor Background = {read=fBackground, write=SetBackground, default=16777215};
	__property THistogramKind HistogramKind = {read=GetHistogramKind, write=SetHistogramKind, default=8};
	__property THistogramLabels Labels = {read=GetLabels, write=SetLabels, default=3};
	__property bool CompBar = {read=fCompBar, write=SetCompBar, default=1};
	__property THistogramStyle HistogramStyle = {read=fHistogramStyle, write=SetHistogramStyle, default=0};
	__property System::Uitypes::TColor GrayColor = {read=fGrayColor, write=fGrayColor, default=0};
	__property Align = {default=0};
	__property DragCursor = {default=-12};
	__property DragMode = {default=0};
	__property Enabled = {default=1};
	__property ParentShowHint = {default=1};
	__property PopupMenu;
	__property ShowHint;
	__property Visible = {default=1};
	__property OnClick;
	__property OnDblClick;
	__property OnDragDrop;
	__property OnDragOver;
	__property OnEndDrag;
	__property OnMouseDown;
	__property OnMouseMove;
	__property OnMouseUp;
	__property OnStartDrag;
	__property Font;
	__property Width = {default=256};
	__property Height = {default=105};
	__property OnContextPopup;
public:
	/* TWinControl.CreateParented */ inline __fastcall THistogramBox(HWND ParentWindow) : Vcl::Controls::TCustomControl(ParentWindow) { }
	
};


//-- var, const, procedure ---------------------------------------------------
}	/* namespace Histogrambox */
#if !defined(DELPHIHEADER_NO_IMPLICIT_NAMESPACE_USE) && !defined(NO_USING_NAMESPACE_HISTOGRAMBOX)
using namespace Histogrambox;
#endif
#pragma pack(pop)
#pragma option pop

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