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

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

#ifndef AdvsmoothdatepickerHPP
#define AdvsmoothdatepickerHPP

#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 <Windows.hpp>	// Pascal unit
#include <Messages.hpp>	// Pascal unit
#include <Sysutils.hpp>	// Pascal unit
#include <Classes.hpp>	// Pascal unit
#include <Graphics.hpp>	// Pascal unit
#include <Controls.hpp>	// Pascal unit
#include <Forms.hpp>	// Pascal unit
#include <Dialogs.hpp>	// Pascal unit
#include <Stdctrls.hpp>	// Pascal unit
#include <Extctrls.hpp>	// Pascal unit
#include <Advsmootheditbutton.hpp>	// Pascal unit
#include <Advsmoothcalendar.hpp>	// Pascal unit
#include <Advstyleif.hpp>	// Pascal unit
#include <Gdipfill.hpp>	// Pascal unit
#include <Advsmoothedit.hpp>	// Pascal unit

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

namespace Advsmoothdatepicker
{
//-- type declarations -------------------------------------------------------
class DELPHICLASS TAdvSmoothDatePickerCalendar;
class DELPHICLASS TAdvSmoothDatePicker;
class PASCALIMPLEMENTATION TAdvSmoothDatePicker : public Advsmootheditbutton::TAdvSmoothEditBtn 
{
	typedef Advsmootheditbutton::TAdvSmoothEditBtn inherited;
	
private:
	Extctrls::TTimer* FTimer;
	bool FDesignTime;
	Advsmoothcalendar::TAdvSmoothCalendar* FCal;
	bool FDeactivating;
	Forms::TForm* CalParent;
	bool CancelThisBtnClick;
	bool FHideCalendarAfterSelection;
	Advsmoothcalendar::TAdvSmoothCalendarDateSelectedEvent FOnDaySelect;
	TAdvSmoothDatePickerCalendar* FCalendar;
	void __fastcall HideParent(void);
	void __fastcall InitEvents(void);
	Controls::TWinControl* __fastcall GetParentEx(void);
	void __fastcall SetParentEx(const Controls::TWinControl* Value);
	System::TDateTime __fastcall GetDate(void);
	void __fastcall SetDate(const System::TDateTime Value);
	void __fastcall SetCalendar(const TAdvSmoothDatePickerCalendar* Value);
	
protected:
	virtual int __fastcall GetVersionNr(void);
	virtual void __fastcall BtnClick(System::TObject* Sender);
	void __fastcall CalParentDeactivate(System::TObject* Sender);
	void __fastcall CalendarDaySelect(System::TObject* Sender, Advsmoothcalendar::TAdvSmoothCalendarDateMode Mode, System::TDateTime Date);
	void __fastcall CalendarKeyPress(System::TObject* Sender, char &Key);
	void __fastcall CalendarKeyDown(System::TObject* Sender, Word &Key, Classes::TShiftState Shift);
	void __fastcall CalendarKeyUp(System::TObject* Sender, Word &Key, Classes::TShiftState Shift);
	HIDESBASE MESSAGE void __fastcall WMSetFocus(Messages::TWMSetFocus &Message);
	virtual void __fastcall Loaded(void);
	DYNAMIC void __fastcall Change(void);
	DYNAMIC void __fastcall KeyDown(Word &Key, Classes::TShiftState Shift);
	virtual void __fastcall CreateWnd(void);
	void __fastcall TimerEvent(System::TObject* Sender);
	__property Advsmoothcalendar::TAdvSmoothCalendar* Cal = {read=FCal, write=FCal};
	
public:
	__fastcall virtual TAdvSmoothDatePicker(Classes::TComponent* AOwner);
	void __fastcall CancelBtnClick(void);
	__fastcall virtual ~TAdvSmoothDatePicker(void);
	virtual void __fastcall DropDown(void);
	__property Controls::TWinControl* Parent = {read=GetParentEx, write=SetParentEx};
	void __fastcall SetComponentStyle(Advstyleif::TTMSStyle AStyle);
	
__published:
	__property TabOrder  = {default=-1};
	__property TabStop  = {default=1};
	__property bool HideCalendarAfterSelection = {read=FHideCalendarAfterSelection, write=FHideCalendarAfterSelection, nodefault};
	__property Advsmoothcalendar::TAdvSmoothCalendarDateSelectedEvent OnSelectDate = {read=FOnDaySelect, write=FOnDaySelect};
	__property TAdvSmoothDatePickerCalendar* Calendar = {read=FCalendar, write=SetCalendar};
	__property System::TDateTime Date = {read=GetDate, write=SetDate};
public:
	#pragma option push -w-inl
	/* TWinControl.CreateParented */ inline __fastcall TAdvSmoothDatePicker(HWND ParentWindow) : Advsmootheditbutton::TAdvSmoothEditBtn(ParentWindow) { }
	#pragma option pop
	
private:
	void *__ITMSStyle;	/* Advstyleif::ITMSStyle */
	
public:
	operator ITMSStyle*(void) { return (ITMSStyle*)&__ITMSStyle; }
	
};


class PASCALIMPLEMENTATION TAdvSmoothDatePickerCalendar : public Classes::TPersistent 
{
	typedef Classes::TPersistent inherited;
	
private:
	TAdvSmoothDatePicker* FOwner;
	Advsmoothcalendar::TAdvSmoothCalendarHeader* FHeader;
	Advsmoothcalendar::TAdvSmoothCalendarDateAppearance* FDateAppearance;
	Advsmoothcalendar::TAdvSmoothCalendarFooter* FFooter;
	Gdipfill::TGDIPFill* FFill;
	
protected:
	void __fastcall DateAppearanceChanged(System::TObject* Sender);
	void __fastcall FillChanged(System::TObject* Sender);
	void __fastcall FooterChanged(System::TObject* Sender);
	void __fastcall HeaderChanged(System::TObject* Sender);
	
public:
	__fastcall TAdvSmoothDatePickerCalendar(TAdvSmoothDatePicker* AOwner);
	virtual void __fastcall Assign(Classes::TPersistent* Source);
	__fastcall virtual ~TAdvSmoothDatePickerCalendar(void);
	
__published:
	__property Gdipfill::TGDIPFill* Fill = {read=FFill, write=FFill};
	__property Advsmoothcalendar::TAdvSmoothCalendarDateAppearance* DateAppearance = {read=FDateAppearance, write=FDateAppearance};
	__property Advsmoothcalendar::TAdvSmoothCalendarFooter* Footer = {read=FFooter, write=FFooter};
	__property Advsmoothcalendar::TAdvSmoothCalendarHeader* Header = {read=FHeader, write=FHeader};
};


//-- var, const, procedure ---------------------------------------------------
static const Shortint MAJ_VER = 0x1;
static const Shortint MIN_VER = 0x0;
static const Shortint REL_VER = 0x0;
static const Shortint BLD_VER = 0x3;

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

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