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

// (DO NOT EDIT: machine generated header) 'Advselectors.pas' rev: 10.00

#ifndef AdvselectorsHPP
#define AdvselectorsHPP

#pragma delphiheader begin
#pragma option push
#pragma option -w-      // All warnings off
#pragma option -Vx      // Zero-length empty class member functions
#pragma pack(push,8)
#include <System.hpp>	// Pascal unit
#include <Sysinit.hpp>	// Pascal unit
#include <Classes.hpp>	// Pascal unit
#include <Windows.hpp>	// Pascal unit
#include <Graphics.hpp>	// Pascal unit
#include <Controls.hpp>	// Pascal unit
#include <Messages.hpp>	// Pascal unit
#include <Extctrls.hpp>	// Pascal unit
#include <Sysutils.hpp>	// Pascal unit
#include <Imglist.hpp>	// Pascal unit
#include <Forms.hpp>	// Pascal unit
#include <Math.hpp>	// Pascal unit
#include <Dialogs.hpp>	// Pascal unit
#include <Acxpvs.hpp>	// Pascal unit

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

namespace Advselectors
{
//-- type declarations -------------------------------------------------------
#pragma option push -b-
enum TAdvSelectorStyle { ssButton, ssCombo };
#pragma option pop

#pragma option push -b-
enum TAdvAppearanceStyle { esOffice2003Blue, esOffice2003Silver, esOffice2003Olive, esOffice2003Classic, esWhidbey, esCustom, esXP };
#pragma option pop

#pragma option push -b-
enum TAdvButtonState { absUp, absDown, absDropDown };
#pragma option pop

#pragma option push -b-
enum TGradientDirection { gdVertical, gdHorizontal };
#pragma option pop

#pragma option push -b-
enum TSelectorItemType { itAutoSizeButton, itFullWidthButton };
#pragma option pop

#pragma option push -b-
enum TColorSelectionStyle { csDiscrete, csColorCube, csSpectrum };
#pragma option pop

typedef Shortint TNoOfButtons;

class DELPHICLASS TAdvSelectorItem;
class PASCALIMPLEMENTATION TAdvSelectorItem : public Classes::TCollectionItem 
{
	typedef Classes::TCollectionItem inherited;
	
private:
	#pragma pack(push,1)
	Types::TRect FItemRect;
	#pragma pack(pop)
	AnsiString FCaption;
	bool FEnable;
	int FImageIndex;
	AnsiString FValue;
	AnsiString FHint;
	Classes::TAlignment FCaptionAlignment;
	TSelectorItemType FItemType;
	Graphics::TColor FBackGroundColor;
	int FTag;
	void __fastcall SetCaption(const AnsiString Value);
	void __fastcall SetEnable(const bool Value);
	void __fastcall SetHint(const AnsiString Value);
	void __fastcall SetImageIndex(const int Value);
	void __fastcall SetValue(const AnsiString Value);
	void __fastcall SetvCaptionAlignment(const Classes::TAlignment Value);
	void __fastcall SetItemType(const TSelectorItemType Value);
	void __fastcall SetBackGroundColor(const Graphics::TColor Value);
	void __fastcall SetTag(const int Value);
	
protected:
	__property Types::TRect ItemRect = {read=FItemRect, write=FItemRect};
	__property bool Enable = {read=FEnable, write=SetEnable, nodefault};
	
public:
	__fastcall virtual TAdvSelectorItem(Classes::TCollection* Collection);
	__fastcall virtual ~TAdvSelectorItem(void);
	virtual void __fastcall Assign(Classes::TPersistent* Source);
	
__published:
	__property Graphics::TColor BackGroundColor = {read=FBackGroundColor, write=SetBackGroundColor, default=536870911};
	__property AnsiString Caption = {read=FCaption, write=SetCaption};
	__property Classes::TAlignment CaptionAlignment = {read=FCaptionAlignment, write=SetvCaptionAlignment, nodefault};
	__property int ImageIndex = {read=FImageIndex, write=SetImageIndex, nodefault};
	__property AnsiString Hint = {read=FHint, write=SetHint};
	__property AnsiString Value = {read=FValue, write=SetValue};
	__property TSelectorItemType ItemType = {read=FItemType, write=SetItemType, default=0};
	__property int Tag = {read=FTag, write=SetTag, default=0};
};


class DELPHICLASS TAdvSelectorItems;
class PASCALIMPLEMENTATION TAdvSelectorItems : public Classes::TCollection 
{
	typedef Classes::TCollection inherited;
	
public:
	TAdvSelectorItem* operator[](int Index) { return Items[Index]; }
	
private:
	Classes::TPersistent* FOwner;
	HIDESBASE TAdvSelectorItem* __fastcall GetItem(int Index);
	HIDESBASE void __fastcall SetItem(int Index, const TAdvSelectorItem* Value);
	
protected:
	DYNAMIC Classes::TPersistent* __fastcall GetOwner(void);
	
public:
	__fastcall TAdvSelectorItems(Classes::TPersistent* AOwner);
	HIDESBASE TAdvSelectorItem* __fastcall Add(void);
	HIDESBASE TAdvSelectorItem* __fastcall Insert(int Index);
	__property TAdvSelectorItem* Items[int Index] = {read=GetItem, write=SetItem/*, default*/};
public:
	#pragma option push -w-inl
	/* TCollection.Destroy */ inline __fastcall virtual ~TAdvSelectorItems(void) { }
	#pragma option pop
	
};


typedef void __fastcall (__closure *TChangeSelectionEvent)(int OldItemIndex, int NewItemIndex);

typedef void __fastcall (__closure *THotToolEvent)(System::TObject* Sender, int HotItemIndex);

class DELPHICLASS TAdvCustomSelectorPanel;
class PASCALIMPLEMENTATION TAdvCustomSelectorPanel : public Extctrls::TCustomPanel 
{
	typedef Extctrls::TCustomPanel inherited;
	
private:
	Classes::TComponent* FOwner;
	Graphics::TColor FColorTo;
	TGradientDirection FGradientDirection;
	Graphics::TColor FWindowBorderColor;
	Classes::TNotifyEvent FOnShouldHide;
	void __fastcall SetColorTo(const Graphics::TColor Value);
	void __fastcall SetTGradientDirection(const TGradientDirection Value);
	void __fastcall SetWindowBorderColor(const Graphics::TColor Value);
	
protected:
	virtual void __fastcall Paint(void);
	DYNAMIC void __fastcall MouseMove(Classes::TShiftState Shift, int X, int Y);
	virtual int __fastcall GetVisibleHeight(void);
	__property Classes::TNotifyEvent OnShouldHide = {read=FOnShouldHide, write=FOnShouldHide};
	
public:
	__fastcall virtual TAdvCustomSelectorPanel(Classes::TComponent* AOwner);
	
__published:
	__property Graphics::TColor ColorTo = {read=FColorTo, write=SetColorTo, default=536870911};
	__property Graphics::TColor WindowBorderColor = {read=FWindowBorderColor, write=SetWindowBorderColor, default=8421504};
	__property TGradientDirection GradientDirection = {read=FGradientDirection, write=SetTGradientDirection, nodefault};
public:
	#pragma option push -w-inl
	/* TCustomControl.Destroy */ inline __fastcall virtual ~TAdvCustomSelectorPanel(void) { }
	#pragma option pop
	
public:
	#pragma option push -w-inl
	/* TWinControl.CreateParented */ inline __fastcall TAdvCustomSelectorPanel(HWND ParentWindow) : Extctrls::TCustomPanel(ParentWindow) { }
	#pragma option pop
	
};


typedef void __fastcall (__closure *TItemDrawEvent)(System::TObject* Sender, int Index, const Types::TRect &R);

typedef void __fastcall (__closure *TSelectEvent)(System::TObject* Sender, int Index, TAdvSelectorItem* Item);

class DELPHICLASS TAdvSelectorPanel;
class PASCALIMPLEMENTATION TAdvSelectorPanel : public TAdvCustomSelectorPanel 
{
	typedef TAdvCustomSelectorPanel inherited;
	
private:
	int FItemIndex;
	TAdvSelectorItems* FItems;
	Graphics::TColor FColorHotTo;
	Graphics::TColor FBorderColor;
	Graphics::TColor FBorderDownColor;
	Graphics::TColor FColorHot;
	Graphics::TColor FBorderHotColor;
	Graphics::TColor FColorDownTo;
	Graphics::TColor FColorDown;
	Imglist::TCustomImageList* FImages;
	int FHotItemIndex;
	int FDownItemIndex;
	int FButtonHeight;
	int FTopOffSet;
	int FLeftOffSet;
	TNoOfButtons FButtonsPerRow;
	TChangeSelectionEvent FOnChangeSelection;
	int FButtonMargin;
	bool FMouseDown;
	Classes::TNotifyEvent FOnSelect;
	Graphics::TColor FBorderSelectedColor;
	Graphics::TColor FColorSelected;
	Graphics::TColor FColorSelectedTo;
	THotToolEvent FOnHotTool;
	int FMaxCaptionLength;
	TItemDrawEvent FOnDrawItem;
	int FMinButtonWidth;
	int FMinButtonHeight;
	bool FNoPrefix;
	bool FTwoColorImages;
	HIDESBASE MESSAGE void __fastcall WMChar(Messages::TWMKey &Msg);
	MESSAGE void __fastcall CMWantSpecialKey(Messages::TWMKey &Msg);
	HIDESBASE MESSAGE void __fastcall CMMouseLeave(Messages::TMessage &Message);
	void __fastcall SetBorderColor(const Graphics::TColor Value);
	void __fastcall SetItemIndex(const int Value);
	void __fastcall SetItems(const TAdvSelectorItems* Value);
	void __fastcall SetImages(const Imglist::TCustomImageList* Value);
	void __fastcall SetButtonsPerRow(const TNoOfButtons Value);
	void __fastcall SetButtonMargin(const int Value);
	void __fastcall SetMinButtonHeight(const int Value);
	void __fastcall SetMinButtonWidth(const int Value);
	void __fastcall SetTwoColorImages(const bool Value);
	
protected:
	void __fastcall DrawItem(int Index, bool RefreshItem = false);
	virtual void __fastcall Paint(void);
	void __fastcall SetItemsPosition(void);
	int __fastcall GetMaxWidth(void);
	int __fastcall TotalAutoSizeButtons(void);
	int __fastcall ItemAtPos(int X, int Y);
	void __fastcall SetPanelHeight(void);
	void __fastcall AutoSizeBtnSize(int &W, int &H);
	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);
	DYNAMIC void __fastcall KeyDown(Word &Key, Classes::TShiftState Shift);
	__property int MinButtonWidth = {read=FMinButtonWidth, write=SetMinButtonWidth, default=16};
	__property int MinButtonHeight = {read=FMinButtonHeight, write=SetMinButtonHeight, default=16};
	__property bool NoPrefix = {read=FNoPrefix, write=FNoPrefix, nodefault};
	__property bool TwoColorImages = {read=FTwoColorImages, write=SetTwoColorImages, nodefault};
	
public:
	__fastcall virtual TAdvSelectorPanel(Classes::TComponent* AOwner);
	__fastcall virtual ~TAdvSelectorPanel(void);
	__property TAdvSelectorItems* Items = {read=FItems, write=SetItems};
	__property int ItemIndex = {read=FItemIndex, write=SetItemIndex, nodefault};
	__property int HotItemIndex = {read=FHotItemIndex, nodefault};
	
__published:
	__property Graphics::TColor BorderColor = {read=FBorderColor, write=SetBorderColor, default=536870911};
	__property Graphics::TColor BorderDownColor = {read=FBorderDownColor, write=FBorderDownColor, default=536870911};
	__property Graphics::TColor BorderHotColor = {read=FBorderHotColor, write=FBorderHotColor, default=536870911};
	__property Graphics::TColor BorderSelectedColor = {read=FBorderSelectedColor, write=FBorderSelectedColor, default=0};
	__property Graphics::TColor ColorDown = {read=FColorDown, write=FColorDown, nodefault};
	__property Graphics::TColor ColorDownTo = {read=FColorDownTo, write=FColorDownTo, default=536870911};
	__property Graphics::TColor ColorHot = {read=FColorHot, write=FColorHot, nodefault};
	__property Graphics::TColor ColorHotTo = {read=FColorHotTo, write=FColorHotTo, default=536870911};
	__property Graphics::TColor ColorSelected = {read=FColorSelected, write=FColorSelected, nodefault};
	__property Graphics::TColor ColorSelectedTo = {read=FColorSelectedTo, write=FColorSelectedTo, nodefault};
	__property TNoOfButtons ButtonsPerRow = {read=FButtonsPerRow, write=SetButtonsPerRow, default=1};
	__property Imglist::TCustomImageList* Images = {read=FImages, write=SetImages};
	__property int ButtonMargin = {read=FButtonMargin, write=SetButtonMargin, default=3};
	__property TChangeSelectionEvent OnChangeSelection = {read=FOnChangeSelection, write=FOnChangeSelection};
	__property Classes::TNotifyEvent OnSelect = {read=FOnSelect, write=FOnSelect};
	__property THotToolEvent OnHotTool = {read=FOnHotTool, write=FOnHotTool};
	__property TItemDrawEvent OnDrawItem = {read=FOnDrawItem, write=FOnDrawItem};
public:
	#pragma option push -w-inl
	/* TWinControl.CreateParented */ inline __fastcall TAdvSelectorPanel(HWND ParentWindow) : TAdvCustomSelectorPanel(ParentWindow) { }
	#pragma option pop
	
};


struct TColorCubeCell
{
	
public:
	#pragma pack(push,1)
	Types::TPoint CenterPos;
	#pragma pack(pop)
	Graphics::TColor Color;
} ;

class DELPHICLASS TAdvColorCubePanel;
class PASCALIMPLEMENTATION TAdvColorCubePanel : public TAdvCustomSelectorPanel 
{
	typedef TAdvCustomSelectorPanel inherited;
	
private:
	TColorCubeCell FCubeCells[127];
	#pragma pack(push,1)
	Types::TPoint FCubeSize;
	#pragma pack(pop)
	Graphics::TColor FSelectedColor;
	int FSelectedIndex;
	int FHotIndex;
	Classes::TNotifyEvent FOnSelect;
	bool FShowRGBHint;
	HIDESBASE MESSAGE void __fastcall CMMouseLeave(Messages::TMessage &Message);
	void __fastcall DrawColorCube(int Index);
	void __fastcall DrawAllColorCube(void);
	void __fastcall DrawSelectedBorder(void);
	void __fastcall DrawHotBorder(void);
	void __fastcall SetSelectedColor(const Graphics::TColor Value);
	void __fastcall SetSelectedIndexAndColor(Graphics::TColor clr, int index = 0xffffffff);
	void __fastcall SetShowRGBHint(const bool Value);
	
protected:
	virtual void __fastcall Paint(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);
	bool __fastcall PtInCell(int Index, const Types::TPoint &P);
	int __fastcall IndexOfCellAt(int X, int Y);
	void __fastcall DrawHexagon(Graphics::TCanvas* aCanvas, const Types::TPoint &P, int X, int Y);
	void __fastcall Initialize(void);
	void __fastcall SetItemsPosition(void);
	void __fastcall SetPanelSize(void);
	
public:
	__fastcall virtual TAdvColorCubePanel(Classes::TComponent* AOwner);
	__fastcall virtual ~TAdvColorCubePanel(void);
	
__published:
	__property Graphics::TColor SelectedColor = {read=FSelectedColor, write=SetSelectedColor, nodefault};
	__property bool ShowRGBHint = {read=FShowRGBHint, write=SetShowRGBHint, nodefault};
	__property Classes::TNotifyEvent OnSelect = {read=FOnSelect, write=FOnSelect};
public:
	#pragma option push -w-inl
	/* TWinControl.CreateParented */ inline __fastcall TAdvColorCubePanel(HWND ParentWindow) : TAdvCustomSelectorPanel(ParentWindow) { }
	#pragma option pop
	
};


class DELPHICLASS TAdvColorSpectrumPanel;
class PASCALIMPLEMENTATION TAdvColorSpectrumPanel : public TAdvCustomSelectorPanel 
{
	typedef TAdvCustomSelectorPanel inherited;
	
private:
	Extctrls::TImage* FSpectrumImage;
	Graphics::TColor FHotColor;
	Graphics::TColor FSelectedColor;
	#pragma pack(push,1)
	Types::TRect FHotRect;
	#pragma pack(pop)
	#pragma pack(push,1)
	Types::TRect FSelectedRect;
	#pragma pack(pop)
	Classes::TNotifyEvent FOnSelect;
	HIDESBASE MESSAGE void __fastcall CMMouseLeave(Messages::TMessage &Message);
	void __fastcall SpectrumImageMouseMove(System::TObject* Sender, Classes::TShiftState Shift, int X, int Y);
	void __fastcall SpectrumImageMouseDown(System::TObject* Sender, Controls::TMouseButton Button, Classes::TShiftState Shift, int X, int Y);
	void __fastcall SpectrumImageMouseUp(System::TObject* Sender, Controls::TMouseButton Button, Classes::TShiftState Shift, int X, int Y);
	void __fastcall DrawHotRect(void);
	void __fastcall DrawSelectedRect(void);
	void __fastcall DrawFocusPoint(void);
	void __fastcall SetSelectedColor(const Graphics::TColor Value);
	
protected:
	virtual void __fastcall Paint(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 SetItemsPosition(void);
	void __fastcall SetPanelSize(void);
	
public:
	__fastcall virtual TAdvColorSpectrumPanel(Classes::TComponent* AOwner);
	__fastcall virtual ~TAdvColorSpectrumPanel(void);
	
__published:
	__property Graphics::TColor SelectedColor = {read=FSelectedColor, write=SetSelectedColor, nodefault};
	__property Classes::TNotifyEvent OnSelect = {read=FOnSelect, write=FOnSelect};
public:
	#pragma option push -w-inl
	/* TWinControl.CreateParented */ inline __fastcall TAdvColorSpectrumPanel(HWND ParentWindow) : TAdvCustomSelectorPanel(ParentWindow) { }
	#pragma option pop
	
};


class DELPHICLASS TAdvTableSelectorPanel;
class PASCALIMPLEMENTATION TAdvTableSelectorPanel : public TAdvCustomSelectorPanel 
{
	typedef TAdvCustomSelectorPanel inherited;
	
private:
	Classes::TNotifyEvent FOnSelect;
	int FSelectedCols;
	int FSelectedRows;
	int FColCount;
	int FRowCount;
	int FCellSize;
	int FLeftMargin;
	int FTopMargin;
	int FCellSpace;
	int FLabelHeight;
	Graphics::TColor FSelectionColor;
	AnsiString FTextTable;
	AnsiString FTextCancel;
	void __fastcall SetColCount(const int Value);
	void __fastcall SetRowCount(const int Value);
	void __fastcall SetSelectedCols(const int Value);
	void __fastcall SetSelectedRows(const int Value);
	void __fastcall SetCellSize(const int Value);
	HIDESBASE MESSAGE void __fastcall CMMouseLeave(Messages::TMessage &Message);
	void __fastcall DrawAllCells(void);
	void __fastcall DrawLabel(void);
	void __fastcall InvalidateSelection(int OldSelectedCols, int OldSelectedRows);
	
protected:
	virtual void __fastcall Paint(void);
	DYNAMIC void __fastcall MouseMove(Classes::TShiftState Shift, int X, int Y);
	DYNAMIC void __fastcall MouseUp(Controls::TMouseButton Button, Classes::TShiftState Shift, int X, int Y);
	void __fastcall SetItemsPosition(void);
	void __fastcall SetPanelSize(void);
	
public:
	__fastcall virtual TAdvTableSelectorPanel(Classes::TComponent* AOwner);
	__fastcall virtual ~TAdvTableSelectorPanel(void);
	
__published:
	__property int ColCount = {read=FColCount, write=SetColCount, default=5};
	__property int RowCount = {read=FRowCount, write=SetRowCount, default=4};
	__property int SelectedCols = {read=FSelectedCols, write=SetSelectedCols, default=0};
	__property int SelectedRows = {read=FSelectedRows, write=SetSelectedRows, default=0};
	__property int CellSize = {read=FCellSize, write=SetCellSize, default=16};
	__property Graphics::TColor SelectionColor = {read=FSelectionColor, write=FSelectionColor, default=8388608};
	__property AnsiString TextTable = {read=FTextTable, write=FTextTable};
	__property AnsiString TextCancel = {read=FTextCancel, write=FTextCancel};
	__property Classes::TNotifyEvent OnSelect = {read=FOnSelect, write=FOnSelect};
public:
	#pragma option push -w-inl
	/* TWinControl.CreateParented */ inline __fastcall TAdvTableSelectorPanel(HWND ParentWindow) : TAdvCustomSelectorPanel(ParentWindow) { }
	#pragma option pop
	
};


class DELPHICLASS TSelectorDropDownWindow;
class PASCALIMPLEMENTATION TSelectorDropDownWindow : public Forms::TCustomForm 
{
	typedef Forms::TCustomForm inherited;
	
private:
	TAdvCustomSelectorPanel* FSelectorPanel;
	bool FHideOnDeActivate;
	bool FShowAbove;
	Classes::TComponent* FOwner;
	bool FShowFullBorder;
	Extctrls::TTimer* FHideTimer;
	bool FShowLeft;
	HIDESBASE MESSAGE void __fastcall WMActivate(Messages::TWMActivate &Message);
	HIDESBASE MESSAGE void __fastcall WMNCHitTest(Messages::TWMNCHitTest &Message);
	void __fastcall HideTimerOnTime(System::TObject* Sender);
	
protected:
	DYNAMIC void __fastcall Paint(void);
	HWND __fastcall GetParentWnd(void);
	virtual void __fastcall CreateParams(Controls::TCreateParams &Params);
	__property bool HideOnDeActivate = {read=FHideOnDeActivate, write=FHideOnDeActivate, nodefault};
	__property bool ShowAbove = {read=FShowAbove, write=FShowAbove, nodefault};
	__property bool ShowLeft = {read=FShowLeft, write=FShowLeft, default=0};
	__property bool ShowFullBorder = {read=FShowFullBorder, write=FShowFullBorder, nodefault};
	
public:
	__fastcall virtual TSelectorDropDownWindow(Classes::TComponent* AOwner);
	__fastcall virtual TSelectorDropDownWindow(Classes::TComponent* AOwner, int Dummy);
	__fastcall virtual ~TSelectorDropDownWindow(void);
	void __fastcall SetWindowSize(void);
	
__published:
	__property TAdvCustomSelectorPanel* SelectorPanel = {read=FSelectorPanel, write=FSelectorPanel};
public:
	#pragma option push -w-inl
	/* TWinControl.CreateParented */ inline __fastcall TSelectorDropDownWindow(HWND ParentWindow) : Forms::TCustomForm(ParentWindow) { }
	#pragma option pop
	
};


typedef void __fastcall (__closure *TDrawToolEvent)(System::TObject* Sender, Graphics::TCanvas* Canvas, int ItemIndex, const Types::TRect &R);

class DELPHICLASS TAdvCustomSelector;
class PASCALIMPLEMENTATION TAdvCustomSelector : public Controls::TCustomControl 
{
	typedef Controls::TCustomControl inherited;
	
private:
	TSelectorDropDownWindow* FDropDownWindow;
	TAdvSelectorPanel* FSelectorPanel;
	bool FMouseInControl;
	bool FMouseDown;
	int FDropDownBtnWidth;
	bool FDown;
	bool FShaded;
	bool FFlat;
	bool FAllowAllUp;
	bool FDropDownButton;
	bool FAutoThemeAdapt;
	TAdvSelectorStyle FStyle;
	Graphics::TBitmap* FGlyphDown;
	Graphics::TBitmap* FGlyphDisabled;
	Graphics::TBitmap* FGlyphHot;
	Graphics::TBitmap* FGlyph;
	Graphics::TBitmap* FGlyphShade;
	Graphics::TColor FBorderColor;
	Graphics::TColor FColorDownTo;
	Graphics::TColor FColorTo;
	Graphics::TColor FColorHotTo;
	Graphics::TColor FColorDown;
	Graphics::TColor FBorderDownColor;
	Graphics::TColor FColorHot;
	Graphics::TColor FColorCheckedTo;
	Graphics::TColor FColorChecked;
	Graphics::TColor FBorderHotColor;
	Imglist::TCustomImageList* FImages;
	Classes::TNotifyEvent FOnMouseEnter;
	Classes::TNotifyEvent FOnDropDown;
	Classes::TNotifyEvent FOnMouseLeave;
	int FGroupIndex;
	TAdvAppearanceStyle FAppearanceStyle;
	TAdvButtonState FState;
	Graphics::TColor FColorDropDownTo;
	Graphics::TColor FColorDropDown;
	Graphics::TColor FBorderDropDownColor;
	int FDropDownCount;
	TGradientDirection FGradientDirection;
	int FSelectedIndex;
	TAdvSelectorItems* FTools;
	TNoOfButtons FButtonsPerRow;
	Graphics::TColor FColorSelectedTo;
	Graphics::TColor FColorSelected;
	Graphics::TColor FBorderSelectedColor;
	THotToolEvent FOnHotTool;
	Classes::TNotifyEvent FOnClick;
	TSelectEvent FOnSelect;
	Graphics::TColor FColorSelectionHotTo;
	Graphics::TColor FColorSelectionHot;
	Graphics::TColor FColorSelectionDownTo;
	Graphics::TColor FColorSelectionDown;
	TDrawToolEvent FOnDrawTool;
	int FDupSelectedIndex;
	bool FTwoColorImages;
	Graphics::TColor FBackGroundImageColor;
	Graphics::TColor FForeGroundImageColor;
	Graphics::TColor FOldForeGroundImgColor;
	Graphics::TColor FOldBkGroundImgColor;
	bool FStretchImageDraw;
	bool FIsThemed;
	HIDESBASE MESSAGE void __fastcall CMFontChanged(Messages::TMessage &Message);
	HIDESBASE MESSAGE void __fastcall CMTextChanged(Messages::TMessage &Message);
	HIDESBASE MESSAGE void __fastcall CMMouseEnter(Messages::TMessage &Message);
	HIDESBASE MESSAGE void __fastcall CMMouseLeave(Messages::TMessage &Message);
	void __fastcall GlyphChanged(System::TObject* Sender);
	void __fastcall OnDropDownWindowHide(System::TObject* Sender);
	void __fastcall OnDropDownPanelShouldHide(System::TObject* Sender);
	void __fastcall OnDropDownPanelSelect(System::TObject* Sender);
	void __fastcall OnDropDownPanelHotTool(System::TObject* Sender, int HotItemIndex);
	void __fastcall OnDropDownPanelDrawTool(System::TObject* Sender, int ItemIndex, const Types::TRect &R);
	void __fastcall PopupBtnDown(void);
	void __fastcall ButtonDown(void);
	void __fastcall DoDropDown(void);
	void __fastcall SetAllowAllUp(const bool Value);
	void __fastcall SetBorderColor(const Graphics::TColor Value);
	void __fastcall SetColorChecked(const Graphics::TColor Value);
	void __fastcall SetColorCheckedTo(const Graphics::TColor Value);
	void __fastcall SetColorTo(const Graphics::TColor Value);
	void __fastcall SetDown(const bool Value);
	void __fastcall SetDropDownButton(const bool Value);
	void __fastcall SetFlat(const bool Value);
	void __fastcall SetGlyph(const Graphics::TBitmap* Value);
	void __fastcall SetGlyphDisabled(const Graphics::TBitmap* Value);
	void __fastcall SetGlyphDown(const Graphics::TBitmap* Value);
	void __fastcall SetGlyphHot(const Graphics::TBitmap* Value);
	void __fastcall SetImages(const Imglist::TCustomImageList* Value);
	void __fastcall SetShaded(const bool Value);
	void __fastcall SetStyle(const TAdvSelectorStyle Value);
	void __fastcall SetGroupIndex(const int Value);
	void __fastcall SetAppearanceStyle(const TAdvAppearanceStyle Value);
	void __fastcall SetColorDropDown(const Graphics::TColor Value);
	void __fastcall SetColorDropDownTo(const Graphics::TColor Value);
	void __fastcall SetDropDownCount(const int Value);
	void __fastcall SetTGradientDirection(const TGradientDirection Value);
	AnsiString __fastcall GetCaption();
	void __fastcall SetCaption(const AnsiString Value);
	void __fastcall SetSelectedIndex(const int Value);
	void __fastcall SetTools(const TAdvSelectorItems* Value);
	int __fastcall GetSelectedIndex(void);
	void __fastcall SetButtonsPerRow(const TNoOfButtons Value);
	AnsiString __fastcall GetVersion();
	void __fastcall SetVersion(const AnsiString Value);
	void __fastcall SetTwoColorImages(const bool Value);
	void __fastcall SetForeGroundImageColor(const Graphics::TColor Value);
	void __fastcall SetStretchImageDraw(const bool Value);
	
protected:
	virtual void __fastcall OnToolSelect(void);
	int __fastcall DrawGlyph(Graphics::TBitmap* aGlyph, const Types::TRect &aRect);
	virtual void __fastcall DrawGlyphAndCaption(Graphics::TBitmap* aGlyph, const Types::TRect &R);
	void __fastcall DrawButton(void);
	void __fastcall DrawComboButton(void);
	void __fastcall SetSelectorPanelItems(void);
	virtual void __fastcall SetSelectorPanel(void);
	virtual void __fastcall Loaded(void);
	DYNAMIC void __fastcall MouseDown(Controls::TMouseButton Button, Classes::TShiftState Shift, int X, int Y);
	DYNAMIC void __fastcall MouseMove(Classes::TShiftState Shift, int X, int Y);
	DYNAMIC void __fastcall MouseUp(Controls::TMouseButton Button, Classes::TShiftState Shift, int X, int Y);
	DYNAMIC void __fastcall KeyDown(Word &Key, Classes::TShiftState Shift);
	virtual void __fastcall Paint(void);
	__property bool MouseInControl = {read=FMouseInControl, nodefault};
	virtual void __fastcall WndProc(Messages::TMessage &Message);
	virtual void __fastcall Notification(Classes::TComponent* AComponent, Classes::TOperation AOperation);
	void __fastcall ThemeAdapt(void);
	void __fastcall SetAutoThemeAdapt(const bool Value);
	virtual int __fastcall GetVersionNr(void);
	bool __fastcall DoVisualStyles(void);
	void __fastcall ChangeImagesColor(Graphics::TColor ForeGColor, Graphics::TColor BkGColor);
	__property bool TwoColorImages = {read=FTwoColorImages, write=SetTwoColorImages, nodefault};
	__property Graphics::TColor OldForeGroundImgColor = {read=FOldForeGroundImgColor, nodefault};
	__property Graphics::TColor OldBkGroundImgColor = {read=FOldBkGroundImgColor, nodefault};
	__property Graphics::TColor ForeGroundImageColor = {read=FForeGroundImageColor, write=SetForeGroundImageColor, nodefault};
	__property Graphics::TColor BackGroundImageColor = {read=FBackGroundImageColor, write=FBackGroundImageColor, nodefault};
	__property bool StretchImageDraw = {read=FStretchImageDraw, write=SetStretchImageDraw, default=1};
	__property bool AllowAllUp = {read=FAllowAllUp, write=SetAllowAllUp, default=0};
	__property bool AutoThemeAdapt = {read=FAutoThemeAdapt, write=SetAutoThemeAdapt, nodefault};
	__property TNoOfButtons ButtonsPerRow = {read=FButtonsPerRow, write=SetButtonsPerRow, default=1};
	__property Graphics::TColor BorderColor = {read=FBorderColor, write=SetBorderColor, default=536870911};
	__property Graphics::TColor BorderDownColor = {read=FBorderDownColor, write=FBorderDownColor, default=536870911};
	__property Graphics::TColor BorderHotColor = {read=FBorderHotColor, write=FBorderHotColor, default=536870911};
	__property Graphics::TColor BorderDropDownColor = {read=FBorderDropDownColor, write=FBorderDropDownColor, default=8421504};
	__property Graphics::TColor BorderSelectedColor = {read=FBorderSelectedColor, write=FBorderSelectedColor, default=0};
	__property AnsiString Caption = {read=GetCaption, write=SetCaption};
	__property Color  = {default=-16777211};
	__property Graphics::TColor ColorTo = {read=FColorTo, write=SetColorTo, default=536870911};
	__property Graphics::TColor ColorDown = {read=FColorDown, write=FColorDown, nodefault};
	__property Graphics::TColor ColorDownTo = {read=FColorDownTo, write=FColorDownTo, default=536870911};
	__property Graphics::TColor ColorHot = {read=FColorHot, write=FColorHot, nodefault};
	__property Graphics::TColor ColorHotTo = {read=FColorHotTo, write=FColorHotTo, default=536870911};
	__property Graphics::TColor ColorChecked = {read=FColorChecked, write=SetColorChecked, default=8421504};
	__property Graphics::TColor ColorCheckedTo = {read=FColorCheckedTo, write=SetColorCheckedTo, default=536870911};
	__property Graphics::TColor ColorDropDown = {read=FColorDropDown, write=SetColorDropDown, nodefault};
	__property Graphics::TColor ColorDropDownTo = {read=FColorDropDownTo, write=SetColorDropDownTo, default=536870911};
	__property Graphics::TColor ColorSelected = {read=FColorSelected, write=FColorSelected, nodefault};
	__property Graphics::TColor ColorSelectedTo = {read=FColorSelectedTo, write=FColorSelectedTo, nodefault};
	__property Graphics::TColor ColorSelectionHot = {read=FColorSelectionHot, write=FColorSelectionHot, nodefault};
	__property Graphics::TColor ColorSelectionHotTo = {read=FColorSelectionHotTo, write=FColorSelectionHotTo, nodefault};
	__property Graphics::TColor ColorSelectionDown = {read=FColorSelectionDown, write=FColorSelectionDown, nodefault};
	__property Graphics::TColor ColorSelectionDownTo = {read=FColorSelectionDownTo, write=FColorSelectionDownTo, nodefault};
	__property bool Down = {read=FDown, write=SetDown, default=0};
	__property bool DropDownButton = {read=FDropDownButton, write=SetDropDownButton, default=0};
	__property int DropDownCount = {read=FDropDownCount, write=SetDropDownCount, nodefault};
	__property bool Flat = {read=FFlat, write=SetFlat, default=1};
	__property int GroupIndex = {read=FGroupIndex, write=SetGroupIndex, default=0};
	__property Graphics::TBitmap* Glyph = {read=FGlyph, write=SetGlyph};
	__property Graphics::TBitmap* GlyphHot = {read=FGlyphHot, write=SetGlyphHot};
	__property Graphics::TBitmap* GlyphDown = {read=FGlyphDown, write=SetGlyphDown};
	__property Graphics::TBitmap* GlyphDisabled = {read=FGlyphDisabled, write=SetGlyphDisabled};
	__property TGradientDirection GradientDirection = {read=FGradientDirection, write=SetTGradientDirection, nodefault};
	__property Imglist::TCustomImageList* Images = {read=FImages, write=SetImages};
	__property bool Shaded = {read=FShaded, write=SetShaded, default=1};
	__property TAdvSelectorStyle Style = {read=FStyle, write=SetStyle, nodefault};
	__property TAdvButtonState State = {read=FState, write=FState, nodefault};
	__property TAdvSelectorItems* Tools = {read=FTools, write=SetTools};
	__property int SelectedIndex = {read=GetSelectedIndex, write=SetSelectedIndex, nodefault};
	__property Classes::TNotifyEvent OnMouseEnter = {read=FOnMouseEnter, write=FOnMouseEnter};
	__property Classes::TNotifyEvent OnMouseLeave = {read=FOnMouseLeave, write=FOnMouseLeave};
	__property Classes::TNotifyEvent OnDropDown = {read=FOnDropDown, write=FOnDropDown};
	__property TSelectEvent OnSelect = {read=FOnSelect, write=FOnSelect};
	__property THotToolEvent OnHotTool = {read=FOnHotTool, write=FOnHotTool};
	__property TDrawToolEvent OnDrawTool = {read=FOnDrawTool, write=FOnDrawTool};
	__property Classes::TNotifyEvent OnClick = {read=FOnClick, write=FOnClick};
	
public:
	__fastcall virtual TAdvCustomSelector(Classes::TComponent* AOwner);
	__fastcall virtual ~TAdvCustomSelector(void);
	DYNAMIC void __fastcall Click(void);
	void __fastcall ShowDropDown(void);
	void __fastcall HideDropDown(void);
	
__published:
	__property Action ;
	__property TabOrder  = {default=-1};
	__property TabStop  = {default=0};
	__property TAdvAppearanceStyle AppearanceStyle = {read=FAppearanceStyle, write=SetAppearanceStyle, default=0};
	__property AnsiString Version = {read=GetVersion, write=SetVersion};
	__property Visible  = {default=1};
public:
	#pragma option push -w-inl
	/* TWinControl.CreateParented */ inline __fastcall TAdvCustomSelector(HWND ParentWindow) : Controls::TCustomControl(ParentWindow) { }
	#pragma option pop
	
};


class DELPHICLASS TAdvToolSelector;
class PASCALIMPLEMENTATION TAdvToolSelector : public TAdvCustomSelector 
{
	typedef TAdvCustomSelector inherited;
	
public:
	__property AppearanceStyle  = {default=0};
	
__published:
	__property AutoThemeAdapt ;
	__property BorderColor  = {default=536870911};
	__property BorderDownColor  = {default=536870911};
	__property BorderHotColor  = {default=536870911};
	__property BorderDropDownColor  = {default=8421504};
	__property ButtonsPerRow  = {default=1};
	__property Caption ;
	__property Color  = {default=-16777211};
	__property ColorTo  = {default=536870911};
	__property ColorDown ;
	__property ColorDownTo  = {default=536870911};
	__property ColorHot ;
	__property ColorHotTo  = {default=536870911};
	__property ColorDropDown ;
	__property ColorDropDownTo  = {default=536870911};
	__property ColorSelected ;
	__property ColorSelectedTo ;
	__property DropDownButton  = {default=0};
	__property Glyph ;
	__property GlyphHot ;
	__property GlyphDown ;
	__property Images ;
	__property Style ;
	__property ShowHint ;
	__property SelectedIndex ;
	__property Tools ;
	__property OnMouseEnter ;
	__property OnMouseLeave ;
	__property OnDropDown ;
	__property OnClick ;
	__property OnSelect ;
	__property OnHotTool ;
	__property OnDrawTool ;
public:
	#pragma option push -w-inl
	/* TAdvCustomSelector.Create */ inline __fastcall virtual TAdvToolSelector(Classes::TComponent* AOwner) : TAdvCustomSelector(AOwner) { }
	#pragma option pop
	#pragma option push -w-inl
	/* TAdvCustomSelector.Destroy */ inline __fastcall virtual ~TAdvToolSelector(void) { }
	#pragma option pop
	
public:
	#pragma option push -w-inl
	/* TWinControl.CreateParented */ inline __fastcall TAdvToolSelector(HWND ParentWindow) : TAdvCustomSelector(ParentWindow) { }
	#pragma option pop
	
};


#pragma option push -b-
enum TSelectionType { stOffice, stBorland };
#pragma option pop

class DELPHICLASS TAdvPenStyleSelector;
class PASCALIMPLEMENTATION TAdvPenStyleSelector : public TAdvCustomSelector 
{
	typedef TAdvCustomSelector inherited;
	
private:
	TSelectionType FSelectionType;
	void __fastcall Initialize(void);
	Graphics::TPenStyle __fastcall GetSelectedPenStyle(void);
	void __fastcall SetSelectedPenStyle(const Graphics::TPenStyle Value);
	void __fastcall SetSelectionType(const TSelectionType Value);
	Graphics::TColor __fastcall GetPenColor(void);
	void __fastcall SetPenColor(const Graphics::TColor Value);
	
protected:
	virtual void __fastcall Loaded(void);
	virtual void __fastcall SetSelectorPanel(void);
	Graphics::TPenStyle __fastcall GetPenStyleAtIndex(int Index);
	int __fastcall GetIndexOfStyle(Graphics::TPenStyle APenStyle);
	
public:
	__fastcall virtual TAdvPenStyleSelector(Classes::TComponent* AOwner);
	__fastcall virtual ~TAdvPenStyleSelector(void);
	__property AppearanceStyle  = {default=0};
	__property Graphics::TPenStyle SelectedPenStyle = {read=GetSelectedPenStyle, write=SetSelectedPenStyle, nodefault};
	
__published:
	__property AutoThemeAdapt ;
	__property BorderColor  = {default=536870911};
	__property BorderDownColor  = {default=536870911};
	__property BorderHotColor  = {default=536870911};
	__property BorderDropDownColor  = {default=8421504};
	__property Caption ;
	__property Color  = {default=-16777211};
	__property ColorTo  = {default=536870911};
	__property ColorDown ;
	__property ColorDownTo  = {default=536870911};
	__property ColorHot ;
	__property ColorHotTo  = {default=536870911};
	__property ColorDropDown ;
	__property ColorDropDownTo  = {default=536870911};
	__property ColorSelected ;
	__property ColorSelectedTo ;
	__property DropDownButton  = {default=0};
	__property Glyph ;
	__property GlyphHot ;
	__property GlyphDown ;
	__property Graphics::TColor PenColor = {read=GetPenColor, write=SetPenColor, nodefault};
	__property SelectedIndex ;
	__property TSelectionType SelectionType = {read=FSelectionType, write=SetSelectionType, default=0};
	__property ShowHint ;
	__property Style ;
	__property Tools ;
	__property OnMouseEnter ;
	__property OnMouseLeave ;
	__property OnDropDown ;
	__property OnClick ;
	__property OnSelect ;
	__property OnHotTool ;
	__property OnDrawTool ;
public:
	#pragma option push -w-inl
	/* TWinControl.CreateParented */ inline __fastcall TAdvPenStyleSelector(HWND ParentWindow) : TAdvCustomSelector(ParentWindow) { }
	#pragma option pop
	
};


class DELPHICLASS TAdvPenWidthSelector;
class PASCALIMPLEMENTATION TAdvPenWidthSelector : public TAdvCustomSelector 
{
	typedef TAdvCustomSelector inherited;
	
private:
	void __fastcall Initialize(void);
	
protected:
	virtual void __fastcall SetSelectorPanel(void);
	
public:
	__fastcall virtual TAdvPenWidthSelector(Classes::TComponent* AOwner);
	__fastcall virtual ~TAdvPenWidthSelector(void);
	__property AppearanceStyle  = {default=0};
	
__published:
	__property AutoThemeAdapt ;
	__property BorderColor  = {default=536870911};
	__property BorderDownColor  = {default=536870911};
	__property BorderHotColor  = {default=536870911};
	__property BorderDropDownColor  = {default=8421504};
	__property Caption ;
	__property Color  = {default=-16777211};
	__property ColorTo  = {default=536870911};
	__property ColorDown ;
	__property ColorDownTo  = {default=536870911};
	__property ColorHot ;
	__property ColorHotTo  = {default=536870911};
	__property ColorDropDown ;
	__property ColorDropDownTo  = {default=536870911};
	__property ColorSelected ;
	__property ColorSelectedTo ;
	__property DropDownButton  = {default=0};
	__property Glyph ;
	__property GlyphHot ;
	__property GlyphDown ;
	__property ShowHint ;
	__property Style ;
	__property SelectedIndex ;
	__property Tools ;
	__property OnMouseEnter ;
	__property OnMouseLeave ;
	__property OnDropDown ;
	__property OnClick ;
	__property OnSelect ;
	__property OnHotTool ;
	__property OnDrawTool ;
public:
	#pragma option push -w-inl
	/* TWinControl.CreateParented */ inline __fastcall TAdvPenWidthSelector(HWND ParentWindow) : TAdvCustomSelector(ParentWindow) { }
	#pragma option pop
	
};


class DELPHICLASS TAdvBrushStyleSelector;
class PASCALIMPLEMENTATION TAdvBrushStyleSelector : public TAdvCustomSelector 
{
	typedef TAdvCustomSelector inherited;
	
private:
	TSelectionType FSelectionType;
	void __fastcall Initialize(void);
	Graphics::TBrushStyle __fastcall GetSelectedBrushStyle(void);
	void __fastcall SetSelectedBrushStyle(const Graphics::TBrushStyle Value);
	Graphics::TColor __fastcall GetBrushColor(void);
	void __fastcall SetBrushColor(const Graphics::TColor Value);
	void __fastcall SetSelectionType(const TSelectionType Value);
	
protected:
	virtual void __fastcall Loaded(void);
	virtual void __fastcall SetSelectorPanel(void);
	Graphics::TBrushStyle __fastcall GetBrushStyleAtIndex(int Index);
	int __fastcall GetIndexOfBrushStyle(Graphics::TBrushStyle ABrushStyle);
	
public:
	__fastcall virtual TAdvBrushStyleSelector(Classes::TComponent* AOwner);
	__fastcall virtual ~TAdvBrushStyleSelector(void);
	__property AppearanceStyle  = {default=0};
	__property Graphics::TBrushStyle SelectedBrushStyle = {read=GetSelectedBrushStyle, write=SetSelectedBrushStyle, nodefault};
	
__published:
	__property AutoThemeAdapt ;
	__property BorderColor  = {default=536870911};
	__property BorderDownColor  = {default=536870911};
	__property BorderHotColor  = {default=536870911};
	__property BorderDropDownColor  = {default=8421504};
	__property Graphics::TColor BrushColor = {read=GetBrushColor, write=SetBrushColor, nodefault};
	__property Caption ;
	__property Color  = {default=-16777211};
	__property ColorTo  = {default=536870911};
	__property ColorDown ;
	__property ColorDownTo  = {default=536870911};
	__property ColorHot ;
	__property ColorHotTo  = {default=536870911};
	__property ColorDropDown ;
	__property ColorDropDownTo  = {default=536870911};
	__property ColorSelected ;
	__property ColorSelectedTo ;
	__property DropDownButton  = {default=0};
	__property Glyph ;
	__property GlyphHot ;
	__property GlyphDown ;
	__property TSelectionType SelectionType = {read=FSelectionType, write=SetSelectionType, default=0};
	__property SelectedIndex ;
	__property ShowHint ;
	__property Style ;
	__property Tools ;
	__property OnMouseEnter ;
	__property OnMouseLeave ;
	__property OnDropDown ;
	__property OnClick ;
	__property OnSelect ;
	__property OnHotTool ;
	__property OnDrawTool ;
public:
	#pragma option push -w-inl
	/* TWinControl.CreateParented */ inline __fastcall TAdvBrushStyleSelector(HWND ParentWindow) : TAdvCustomSelector(ParentWindow) { }
	#pragma option pop
	
};


class DELPHICLASS TAdvShadowSelector;
class PASCALIMPLEMENTATION TAdvShadowSelector : public TAdvCustomSelector 
{
	typedef TAdvCustomSelector inherited;
	
private:
	void __fastcall Initialize(void);
	
protected:
	virtual void __fastcall Loaded(void);
	virtual void __fastcall SetSelectorPanel(void);
	
public:
	__fastcall virtual TAdvShadowSelector(Classes::TComponent* AOwner);
	__fastcall virtual ~TAdvShadowSelector(void);
	__property AppearanceStyle  = {default=0};
	
__published:
	__property AutoThemeAdapt ;
	__property BorderColor  = {default=536870911};
	__property BorderDownColor  = {default=536870911};
	__property BorderHotColor  = {default=536870911};
	__property BorderDropDownColor  = {default=8421504};
	__property Caption ;
	__property Color  = {default=-16777211};
	__property ColorTo  = {default=536870911};
	__property ColorDown ;
	__property ColorDownTo  = {default=536870911};
	__property ColorHot ;
	__property ColorHotTo  = {default=536870911};
	__property ColorDropDown ;
	__property ColorDropDownTo  = {default=536870911};
	__property ColorSelected ;
	__property ColorSelectedTo ;
	__property DropDownButton  = {default=0};
	__property Glyph ;
	__property GlyphHot ;
	__property GlyphDown ;
	__property ShowHint ;
	__property Style ;
	__property SelectedIndex ;
	__property Tools ;
	__property OnMouseEnter ;
	__property OnMouseLeave ;
	__property OnDropDown ;
	__property OnClick ;
	__property OnSelect ;
	__property OnHotTool ;
	__property OnDrawTool ;
public:
	#pragma option push -w-inl
	/* TWinControl.CreateParented */ inline __fastcall TAdvShadowSelector(HWND ParentWindow) : TAdvCustomSelector(ParentWindow) { }
	#pragma option pop
	
};


class DELPHICLASS TAdvTableBorderSelector;
class PASCALIMPLEMENTATION TAdvTableBorderSelector : public TAdvCustomSelector 
{
	typedef TAdvCustomSelector inherited;
	
private:
	void __fastcall Initialize(void);
	
protected:
	virtual void __fastcall SetSelectorPanel(void);
	
public:
	__fastcall virtual TAdvTableBorderSelector(Classes::TComponent* AOwner);
	__fastcall virtual ~TAdvTableBorderSelector(void);
	__property AppearanceStyle  = {default=0};
	
__published:
	__property AutoThemeAdapt ;
	__property BorderColor  = {default=536870911};
	__property BorderDownColor  = {default=536870911};
	__property BorderHotColor  = {default=536870911};
	__property BorderDropDownColor  = {default=8421504};
	__property Caption ;
	__property Color  = {default=-16777211};
	__property ColorTo  = {default=536870911};
	__property ColorDown ;
	__property ColorDownTo  = {default=536870911};
	__property ColorHot ;
	__property ColorHotTo  = {default=536870911};
	__property ColorDropDown ;
	__property ColorDropDownTo  = {default=536870911};
	__property ColorSelected ;
	__property ColorSelectedTo ;
	__property DropDownButton  = {default=0};
	__property Glyph ;
	__property GlyphHot ;
	__property GlyphDown ;
	__property Style ;
	__property ShowHint ;
	__property SelectedIndex ;
	__property Tools ;
	__property OnMouseEnter ;
	__property OnMouseLeave ;
	__property OnDropDown ;
	__property OnClick ;
	__property OnSelect ;
	__property OnHotTool ;
	__property OnDrawTool ;
public:
	#pragma option push -w-inl
	/* TWinControl.CreateParented */ inline __fastcall TAdvTableBorderSelector(HWND ParentWindow) : TAdvCustomSelector(ParentWindow) { }
	#pragma option pop
	
};


class DELPHICLASS TAdvGradientDirectionSelector;
class PASCALIMPLEMENTATION TAdvGradientDirectionSelector : public TAdvCustomSelector 
{
	typedef TAdvCustomSelector inherited;
	
private:
	Graphics::TColor FStartColor;
	Graphics::TColor FEndColor;
	bool FShowSelectedGradient;
	void __fastcall SetEndColor(const Graphics::TColor Value);
	void __fastcall SetStartColor(const Graphics::TColor Value);
	void __fastcall SelectorPanelOnDrawItem(System::TObject* Sender, int Index, const Types::TRect &R);
	void __fastcall Initialize(void);
	void __fastcall SetShowSelectedGradient(const bool Value);
	
protected:
	virtual void __fastcall SetSelectorPanel(void);
	virtual void __fastcall DrawGlyphAndCaption(Graphics::TBitmap* aGlyph, const Types::TRect &R);
	
public:
	__fastcall virtual TAdvGradientDirectionSelector(Classes::TComponent* AOwner);
	__fastcall virtual ~TAdvGradientDirectionSelector(void);
	__property AppearanceStyle  = {default=0};
	
__published:
	__property Graphics::TColor StartColor = {read=FStartColor, write=SetStartColor, nodefault};
	__property Graphics::TColor EndColor = {read=FEndColor, write=SetEndColor, nodefault};
	__property AutoThemeAdapt ;
	__property BorderColor  = {default=536870911};
	__property BorderDownColor  = {default=536870911};
	__property BorderHotColor  = {default=536870911};
	__property BorderDropDownColor  = {default=8421504};
	__property Caption ;
	__property Color  = {default=-16777211};
	__property ColorTo  = {default=536870911};
	__property ColorDown ;
	__property ColorDownTo  = {default=536870911};
	__property ColorHot ;
	__property ColorHotTo  = {default=536870911};
	__property ColorDropDown ;
	__property ColorDropDownTo  = {default=536870911};
	__property ColorSelected ;
	__property ColorSelectedTo ;
	__property DropDownButton  = {default=0};
	__property Glyph ;
	__property GlyphHot ;
	__property GlyphDown ;
	__property Style ;
	__property SelectedIndex ;
	__property bool ShowSelectedGradient = {read=FShowSelectedGradient, write=SetShowSelectedGradient, default=0};
	__property Tools ;
	__property ShowHint ;
	__property OnMouseEnter ;
	__property OnMouseLeave ;
	__property OnDropDown ;
	__property OnClick ;
	__property OnSelect ;
	__property OnHotTool ;
public:
	#pragma option push -w-inl
	/* TWinControl.CreateParented */ inline __fastcall TAdvGradientDirectionSelector(HWND ParentWindow) : TAdvCustomSelector(ParentWindow) { }
	#pragma option pop
	
};


class DELPHICLASS TAdvCustomColorSelector;
class PASCALIMPLEMENTATION TAdvCustomColorSelector : public TAdvCustomSelector 
{
	typedef TAdvCustomSelector inherited;
	
private:
	TAdvColorCubePanel* FColorCubePanel;
	TAdvColorSpectrumPanel* FSpectrumPanel;
	TColorSelectionStyle FColorSelectionStyle;
	bool FShowSelectedColor;
	Graphics::TColor FSelectedColor;
	bool FShowRGBHint;
	void __fastcall SetColorSelectionStyle(const TColorSelectionStyle Value);
	void __fastcall SelectorPanelOnDrawItem(System::TObject* Sender, int Index, const Types::TRect &R);
	void __fastcall SetShowSelectedColor(const bool Value);
	void __fastcall CubePanelOnSelect(System::TObject* Sender);
	void __fastcall SpectrumPanelOnSelect(System::TObject* Sender);
	void __fastcall SetSelectedColor(const Graphics::TColor Value);
	Graphics::TColor __fastcall GetSelectedColor(void);
	
protected:
	virtual void __fastcall Initialize(void);
	virtual void __fastcall Loaded(void);
	virtual void __fastcall OnToolSelect(void);
	virtual void __fastcall SetSelectorPanel(void);
	virtual void __fastcall DrawGlyphAndCaption(Graphics::TBitmap* aGlyph, const Types::TRect &R);
	
public:
	__fastcall virtual TAdvCustomColorSelector(Classes::TComponent* AOwner);
	__fastcall virtual ~TAdvCustomColorSelector(void);
	__property AppearanceStyle  = {default=0};
	__property ButtonsPerRow  = {default=1};
	__property TColorSelectionStyle SelectionStyle = {read=FColorSelectionStyle, write=SetColorSelectionStyle, default=0};
	__property bool ShowSelectedColor = {read=FShowSelectedColor, write=SetShowSelectedColor, default=1};
	__property Graphics::TColor SelectedColor = {read=GetSelectedColor, write=SetSelectedColor, nodefault};
	__property bool ShowRGBHint = {read=FShowRGBHint, write=FShowRGBHint, nodefault};
public:
	#pragma option push -w-inl
	/* TWinControl.CreateParented */ inline __fastcall TAdvCustomColorSelector(HWND ParentWindow) : TAdvCustomSelector(ParentWindow) { }
	#pragma option pop
	
};


class DELPHICLASS TAdvColorSelector;
class PASCALIMPLEMENTATION TAdvColorSelector : public TAdvCustomColorSelector 
{
	typedef TAdvCustomColorSelector inherited;
	
protected:
	virtual void __fastcall Initialize(void);
	
public:
	__property SelectedIndex ;
	
__published:
	__property SelectionStyle  = {default=0};
	__property ShowSelectedColor  = {default=1};
	__property SelectedColor ;
	__property ShowRGBHint ;
	__property AutoThemeAdapt ;
	__property BorderColor  = {default=536870911};
	__property BorderDownColor  = {default=536870911};
	__property BorderHotColor  = {default=536870911};
	__property BorderDropDownColor  = {default=8421504};
	__property Caption ;
	__property Color  = {default=-16777211};
	__property ColorTo  = {default=536870911};
	__property ColorDown ;
	__property ColorDownTo  = {default=536870911};
	__property ColorHot ;
	__property ColorHotTo  = {default=536870911};
	__property ColorDropDown ;
	__property ColorDropDownTo  = {default=536870911};
	__property ColorSelected ;
	__property ColorSelectedTo ;
	__property DropDownButton  = {default=0};
	__property Glyph ;
	__property GlyphHot ;
	__property GlyphDown ;
	__property ShowHint ;
	__property Style ;
	__property Tools ;
	__property OnMouseEnter ;
	__property OnMouseLeave ;
	__property OnDropDown ;
	__property OnClick ;
	__property OnSelect ;
public:
	#pragma option push -w-inl
	/* TAdvCustomColorSelector.Create */ inline __fastcall virtual TAdvColorSelector(Classes::TComponent* AOwner) : TAdvCustomColorSelector(AOwner) { }
	#pragma option pop
	#pragma option push -w-inl
	/* TAdvCustomColorSelector.Destroy */ inline __fastcall virtual ~TAdvColorSelector(void) { }
	#pragma option pop
	
public:
	#pragma option push -w-inl
	/* TWinControl.CreateParented */ inline __fastcall TAdvColorSelector(HWND ParentWindow) : TAdvCustomColorSelector(ParentWindow) { }
	#pragma option pop
	
};


class DELPHICLASS TAdvTextColorSelector;
class PASCALIMPLEMENTATION TAdvTextColorSelector : public TAdvCustomColorSelector 
{
	typedef TAdvCustomColorSelector inherited;
	
protected:
	virtual void __fastcall Initialize(void);
	
__published:
	__property AutoThemeAdapt ;
	__property BorderColor  = {default=536870911};
	__property BorderDownColor  = {default=536870911};
	__property BorderHotColor  = {default=536870911};
	__property BorderDropDownColor  = {default=8421504};
	__property Caption ;
	__property Color  = {default=-16777211};
	__property ColorTo  = {default=536870911};
	__property ColorDown ;
	__property ColorDownTo  = {default=536870911};
	__property ColorHot ;
	__property ColorHotTo  = {default=536870911};
	__property ColorDropDown ;
	__property ColorDropDownTo  = {default=536870911};
	__property ColorSelected ;
	__property ColorSelectedTo ;
	__property DropDownButton  = {default=0};
	__property Glyph ;
	__property GlyphHot ;
	__property GlyphDown ;
	__property ShowHint ;
	__property ShowSelectedColor  = {default=1};
	__property SelectedColor ;
	__property Style ;
	__property Tools ;
	__property OnMouseEnter ;
	__property OnMouseLeave ;
	__property OnDropDown ;
	__property OnClick ;
	__property OnSelect ;
public:
	#pragma option push -w-inl
	/* TAdvCustomColorSelector.Create */ inline __fastcall virtual TAdvTextColorSelector(Classes::TComponent* AOwner) : TAdvCustomColorSelector(AOwner) { }
	#pragma option pop
	#pragma option push -w-inl
	/* TAdvCustomColorSelector.Destroy */ inline __fastcall virtual ~TAdvTextColorSelector(void) { }
	#pragma option pop
	
public:
	#pragma option push -w-inl
	/* TWinControl.CreateParented */ inline __fastcall TAdvTextColorSelector(HWND ParentWindow) : TAdvCustomColorSelector(ParentWindow) { }
	#pragma option pop
	
};


class DELPHICLASS TAdvCustomTableSelector;
class PASCALIMPLEMENTATION TAdvCustomTableSelector : public TAdvCustomSelector 
{
	typedef TAdvCustomSelector inherited;
	
private:
	TAdvTableSelectorPanel* FTableSelectorPanel;
	int FSelectedColumns;
	int FSelectedRows;
	int FDefaultRowCount;
	int FDefaultColCount;
	Classes::TNotifyEvent FOnSelect;
	AnsiString FTextTable;
	AnsiString FTextCancel;
	void __fastcall SetDefaultColCount(const int Value);
	void __fastcall SetDefaultRowCount(const int Value);
	void __fastcall TableSelectorOnSelect(System::TObject* Sender);
	
protected:
	DYNAMIC void __fastcall MouseMove(Classes::TShiftState Shift, int X, int Y);
	virtual void __fastcall Loaded(void);
	virtual void __fastcall SetSelectorPanel(void);
	__property int DefaultColCount = {read=FDefaultColCount, write=SetDefaultColCount, default=5};
	__property int DefaultRowCount = {read=FDefaultRowCount, write=SetDefaultRowCount, default=4};
	__property int SelectedColumns = {read=FSelectedColumns, default=0};
	__property int SelectedRows = {read=FSelectedRows, default=0};
	
public:
	__fastcall virtual TAdvCustomTableSelector(Classes::TComponent* AOwner);
	__fastcall virtual ~TAdvCustomTableSelector(void);
	__property AnsiString TextTable = {read=FTextTable, write=FTextTable};
	__property AnsiString TextCancel = {read=FTextCancel, write=FTextCancel};
	__property Classes::TNotifyEvent OnSelect = {read=FOnSelect, write=FOnSelect};
public:
	#pragma option push -w-inl
	/* TWinControl.CreateParented */ inline __fastcall TAdvCustomTableSelector(HWND ParentWindow) : TAdvCustomSelector(ParentWindow) { }
	#pragma option pop
	
};


class DELPHICLASS TAdvTableSelector;
class PASCALIMPLEMENTATION TAdvTableSelector : public TAdvCustomTableSelector 
{
	typedef TAdvCustomTableSelector inherited;
	
public:
	__property SelectedColumns  = {default=0};
	__property SelectedRows  = {default=0};
	__property AppearanceStyle  = {default=0};
	
__published:
	__property AutoThemeAdapt ;
	__property BorderColor  = {default=536870911};
	__property BorderDownColor  = {default=536870911};
	__property BorderHotColor  = {default=536870911};
	__property Caption ;
	__property Color  = {default=-16777211};
	__property ColorTo  = {default=536870911};
	__property ColorDown ;
	__property ColorDownTo  = {default=536870911};
	__property ColorHot ;
	__property ColorHotTo  = {default=536870911};
	__property DefaultColCount  = {default=5};
	__property DefaultRowCount  = {default=4};
	__property DropDownButton  = {default=0};
	__property Glyph ;
	__property GlyphHot ;
	__property GlyphDown ;
	__property ShowHint ;
	__property Style ;
	__property TextTable ;
	__property TextCancel ;
	__property OnMouseEnter ;
	__property OnMouseLeave ;
	__property OnDropDown ;
	__property OnClick ;
	__property OnSelect ;
public:
	#pragma option push -w-inl
	/* TAdvCustomTableSelector.Create */ inline __fastcall virtual TAdvTableSelector(Classes::TComponent* AOwner) : TAdvCustomTableSelector(AOwner) { }
	#pragma option pop
	#pragma option push -w-inl
	/* TAdvCustomTableSelector.Destroy */ inline __fastcall virtual ~TAdvTableSelector(void) { }
	#pragma option pop
	
public:
	#pragma option push -w-inl
	/* TWinControl.CreateParented */ inline __fastcall TAdvTableSelector(HWND ParentWindow) : TAdvCustomTableSelector(ParentWindow) { }
	#pragma option pop
	
};


class DELPHICLASS TAdvCharacterSelector;
class PASCALIMPLEMENTATION TAdvCharacterSelector : public TAdvCustomSelector 
{
	typedef TAdvCustomSelector inherited;
	
private:
	Classes::TNotifyEvent FOnSelect;
	AnsiString FCharacters;
	char FSelectedChar;
	bool FAutoLoad;
	Graphics::TFont* FCharFont;
	void __fastcall AddItemsFromChars(void);
	void __fastcall LoadCharFromFont(void);
	void __fastcall SetCharacters(const AnsiString Value);
	void __fastcall SetSelectedChar(const char Value);
	void __fastcall SetAutoLoad(const bool Value);
	void __fastcall SetCharFont(const Graphics::TFont* Value);
	
protected:
	virtual void __fastcall Loaded(void);
	virtual void __fastcall OnToolSelect(void);
	virtual void __fastcall SetSelectorPanel(void);
	virtual void __fastcall DrawGlyphAndCaption(Graphics::TBitmap* AGlyph, const Types::TRect &R);
	
public:
	__fastcall virtual TAdvCharacterSelector(Classes::TComponent* AOwner);
	__fastcall virtual ~TAdvCharacterSelector(void);
	__property AppearanceStyle  = {default=0};
	__property char SelectedChar = {read=FSelectedChar, write=SetSelectedChar, nodefault};
	__property Tools ;
	
__published:
	__property bool AutoLoad = {read=FAutoLoad, write=SetAutoLoad, default=1};
	__property AutoThemeAdapt ;
	__property BorderColor  = {default=536870911};
	__property BorderDownColor  = {default=536870911};
	__property BorderHotColor  = {default=536870911};
	__property BorderDropDownColor  = {default=8421504};
	__property ButtonsPerRow  = {default=1};
	__property Caption ;
	__property Color  = {default=-16777211};
	__property ColorTo  = {default=536870911};
	__property ColorDown ;
	__property ColorDownTo  = {default=536870911};
	__property ColorHot ;
	__property ColorHotTo  = {default=536870911};
	__property ColorDropDown ;
	__property ColorDropDownTo  = {default=536870911};
	__property AnsiString Characters = {read=FCharacters, write=SetCharacters};
	__property Graphics::TFont* CharFont = {read=FCharFont, write=SetCharFont};
	__property DropDownButton  = {default=0};
	__property Glyph ;
	__property GlyphHot ;
	__property GlyphDown ;
	__property ShowHint ;
	__property Style ;
	__property OnMouseEnter ;
	__property OnMouseLeave ;
	__property OnDropDown ;
	__property OnClick ;
	__property Classes::TNotifyEvent OnSelect = {read=FOnSelect, write=FOnSelect};
public:
	#pragma option push -w-inl
	/* TWinControl.CreateParented */ inline __fastcall TAdvCharacterSelector(HWND ParentWindow) : TAdvCustomSelector(ParentWindow) { }
	#pragma option pop
	
};


//-- var, const, procedure ---------------------------------------------------
static const Shortint MINBUTTONSIZE = 0x10;
static const Shortint TABLECELLSIZE = 0x18;
static const Shortint MAJ_VER = 0x1;
static const Shortint MIN_VER = 0x3;
static const Shortint REL_VER = 0x5;
static const Shortint BLD_VER = 0x2;

}	/* namespace Advselectors */
using namespace Advselectors;
#pragma pack(pop)
#pragma option pop

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