home *** CD-ROM | disk | FTP | other *** search
- //----------------------------------------------------------------------------
- // pvlDedit.hpp - bcbdcc32 generated hdr (DO NOT EDIT) rev: 0
- // From: pvlDedit.pas
- //----------------------------------------------------------------------------
- #ifndef pvlDeditHPP
- #define pvlDeditHPP
- //----------------------------------------------------------------------------
- #include <Graphics.hpp>
- #include <SysUtils.hpp>
- #include <Windows.hpp>
- #include <Messages.hpp>
- #include <Forms.hpp>
- #include <Classes.hpp>
- #include <Controls.hpp>
- #include <Grids.hpp>
- #include <ExtCtrls.hpp>
- #include <Buttons.hpp>
- #include <System.hpp>
- namespace Pvldedit
- {
- //-- type declarations -------------------------------------------------------
- class __declspec(delphiclass) TpvlSpeedButton;
- class __declspec(pascalimplementation) TpvlSpeedButton : public Buttons::TSpeedButton
- {
- typedef Buttons::TSpeedButton inherited;
-
- private:
- Extctrls::TTimer* FRepeatTimer;
- void __fastcall TimerExpired(System::TObject* p0);
-
- protected:
- virtual void __fastcall MouseDown(Controls::TMouseButton p0, Classes::TShiftState p1, int p2, int p3
- );
- virtual void __fastcall MouseUp(Controls::TMouseButton p0, Classes::TShiftState p1, int p2, int p3)
- ;
-
- public:
- __fastcall virtual ~TpvlSpeedButton(void);
- public:
- /* TSpeedButton.Create */ __fastcall virtual TpvlSpeedButton(Classes::TComponent* AOwner) : Buttons::
- TSpeedButton(AOwner) { }
-
- };
-
- class __declspec(delphiclass) TPvlGridColors;
- class __declspec(pascalimplementation) TPvlGridColors : public Classes::TPersistent
- {
- typedef Classes::TPersistent inherited;
-
- private:
- Graphics::TColor fNormalColor;
- Graphics::TColor fHighlightColor;
- Graphics::TColor fInvalidColor;
- Graphics::TColor fTodayColor;
- bool fShowToday;
- Graphics::TColor fCalColor;
-
- public:
- __fastcall TPvlGridColors(void);
-
- __published:
- __property Graphics::TColor CalColor = {read=fCalColor, write=fCalColor, default=16777215};
- __property bool ShowToday = {read=fShowToday, write=fShowToday, default=1};
- __property Graphics::TColor NormalColor = {read=fNormalColor, write=fNormalColor, default=0};
- __property Graphics::TColor HighlightColor = {read=fHighlightColor, write=fHighlightColor, default=255
- };
- __property Graphics::TColor InvalidColor = {read=fInvalidColor, write=fInvalidColor, default=16711680
- };
- __property Graphics::TColor TodayColor = {read=fTodayColor, write=fTodayColor, default=255};
- public:
-
- /* TObject.Destroy */ __fastcall virtual ~TPvlGridColors(void) { }
-
- };
-
- enum TDayOfWeek { Sun, Mon, Tue, Wed, Thur, Fri, Sat };
-
- typedef Set<TDayOfWeek, Sun, Sat> TpvlDaySet;
-
- class __declspec(delphiclass) TPvlCustomDateEditCalendar;
- class __declspec(pascalimplementation) TPvlCustomDateEditCalendar : public Grids::TCustomGrid
- {
- typedef Grids::TCustomGrid inherited;
-
- private:
- System::TDateTime FDate;
- int FMonthOffset;
- Classes::TNotifyEvent FOnChange;
- TDayOfWeek FStartOfWeek;
- bool FUpdating;
- System::AnsiString __fastcall GetCellText(int p0, int p1);
- int __fastcall GetDateElement(int p0);
- void __fastcall SetCalendarDate(System::TDateTime p0);
- void __fastcall SetDateElement(int p0, int p1);
-
- protected:
- virtual void __fastcall Change(void);
- virtual void __fastcall DrawCell(long p0, long p1, const Windows::TRect &pvlDedit_, Grids::TGridDrawState
- p3);
- virtual bool __fastcall SelectCell(long p0, long p1);
- HIDESBASE MESSAGE void __fastcall WMSize(Messages::TWMSize &pvlDedit_);
-
- public:
- TPvlGridColors* colors;
- TpvlDaySet Highlightdays;
- TpvlDaySet Invaliddays;
- Classes::TList* Highlightdates;
- Classes::TList* Invaliddates;
- __fastcall virtual TPvlCustomDateEditCalendar(Classes::TComponent* p0);
- __property System::TDateTime Date = {read=FDate, write=SetCalendarDate};
- __property System::AnsiString CellText[int ACol][int ARow] = {read=GetCellText};
- void __fastcall UpdateCalendar(void);
- __property int Day = {read=GetDateElement, write=SetDateElement, index=3, nodefault};
- __property int Month = {read=GetDateElement, index=2, nodefault};
- __property int Year = {read=GetDateElement, index=1, nodefault};
- __property Classes::TNotifyEvent OnChange = {read=FOnChange, write=FOnChange};
- public:
- /* TCustomGrid.Destroy */ __fastcall virtual ~TPvlCustomDateEditCalendar(void) { }
-
- public:
- /* TWinControl.CreateParented */ __fastcall TPvlCustomDateEditCalendar(HWND ParentWindow) : Grids::
- TCustomGrid(ParentWindow) { }
-
- };
-
- class __declspec(delphiclass) TFrmVisDateEdit;
- class __declspec(pascalimplementation) TFrmVisDateEdit : public Forms::TForm
- {
- typedef Forms::TForm inherited;
-
- __published:
- void __fastcall NowClick(System::TObject* p0);
- void __fastcall YrDnClick(System::TObject* p0);
- void __fastcall MthDnClick(System::TObject* p0);
- void __fastcall MthUpClick(System::TObject* p0);
- void __fastcall YrUpClick(System::TObject* p0);
- void __fastcall CalDblClick(System::TObject* p0);
- void __fastcall FormClose(System::TObject* p0, Forms::TCloseAction &p1);
- void __fastcall FormKeyUp(System::TObject* p0, Word &p1, Classes::TShiftState p2);
- void __fastcall DateChange(System::TObject* p0);
- void __fastcall FormShow(System::TObject* p0);
-
- private:
- System::TDateTime olddate;
- int oldminmaxhandler;
- Controls::TControl* capture;
- virtual void __fastcall CreateParams(Controls::TCreateParams &pvlDedit_);
- virtual void __fastcall loaded(void);
- HIDESBASE MESSAGE void __fastcall WMLButtonDown(Messages::TWMMouse &pvlDedit_);
- HIDESBASE MESSAGE void __fastcall WMLButtonUp(Messages::TWMMouse &pvlDedit_);
- HIDESBASE MESSAGE void __fastcall WMMOUSEMOVE(Messages::TWMMouse &pvlDedit_);
- HIDESBASE MESSAGE void __fastcall WMLBUTTONDBLCLK(Messages::TWMMouse &pvlDedit_);
-
- public:
- TPvlCustomDateEditCalendar* Cal;
- Extctrls::TPanel* Panel1;
- Buttons::TSpeedButton* btnNow;
- Buttons::TSpeedButton* YrUp;
- Buttons::TSpeedButton* YrDn;
- Buttons::TSpeedButton* MthUp;
- Buttons::TSpeedButton* MthDn;
- __fastcall virtual ~TFrmVisDateEdit(void);
- public:
- /* TForm.Create */ __fastcall virtual TFrmVisDateEdit(Classes::TComponent* AOwner) : Forms::TForm(AOwner
- ) { }
- /* TForm.CreateNew */ __fastcall TFrmVisDateEdit(Classes::TComponent* AOwner, int Dummy) : Forms::TForm(
- AOwner, Dummy) { }
-
- public:
- /* TWinControl.CreateParented */ __fastcall TFrmVisDateEdit(HWND ParentWindow) : Forms::TForm(ParentWindow
- ) { }
-
- };
-
- enum TMDY { TYear, TMonth, TDay };
-
- enum TDateStatus { dsActive, dsHighlight, dsInvalid };
-
- //-- var, const, procedure ---------------------------------------------------
- #define InitRepeatPause (Word)(400)
- #define RepeatPause (Byte)(100)
- extern TDateStatus __fastcall pvlgetdatestatus(System::TDateTime p0, TpvlDaySet p1, TpvlDaySet p2, Classes::TList*
- p3, Classes::TList* p4);
- extern System::TDateTime __fastcall incdecDate(System::TDateTime p0, bool p1, bool p2, TMDY p3);
- //-- template instantiations -------------------------------------------------
- template class TpvlDaySet ;
-
- } /* namespace Pvldedit */
- #if !defined(NO_IMPLICIT_NAMESPACE_USE)
- using namespace Pvldedit;
- #endif
- //-- end unit ----------------------------------------------------------------
- #endif // pvlDedit
-