home *** CD-ROM | disk | FTP | other *** search
- //----------------------------------------------------------------------------
- // Calendar.hpp - dcc32 generated hdr (DO NOT EDIT) rev: -2
- // From: Calendar.pas
- //----------------------------------------------------------------------------
- #ifndef CalendarHPP
- #define CalendarHPP
- //----------------------------------------------------------------------------
- #ifndef MenusHPP
- #include <Menus.hpp>
- #endif
-
- #ifndef SysUtilsHPP
- #include <SysUtils.hpp>
- #endif
-
- #ifndef GridsHPP
- #include <Grids.hpp>
- #endif
-
- #ifndef StdCtrlsHPP
- #include <StdCtrls.hpp>
- #endif
-
- #ifndef GraphicsHPP
- #include <Graphics.hpp>
- #endif
-
- #ifndef FormsHPP
- #include <Forms.hpp>
- #endif
-
- #ifndef WindowsHPP
- #include <Windows.hpp>
- #endif
-
- #ifndef MessagesHPP
- #include <Messages.hpp>
- #endif
-
- #ifndef ControlsHPP
- #include <Controls.hpp>
- #endif
-
- #ifndef ClassesHPP
- #include <Classes.hpp>
- #endif
-
- #ifndef SystemHPP
- #include <System.hpp>
- #endif
-
- namespace Calendar
- {
- //-- type declarations -------------------------------------------------------
- typedef System::Shortint TDayOfWeek;
-
- class __declspec(delphiclass) TCalendar;
- class __declspec(pascalimplementation) TCalendar : public Grids::TCustomGrid
- {
- typedef TCalendar ThisClass;
- typedef Grids::TCustomGrid inherited;
-
- private:
- System::TDateTime FDate;
- System::Integer FMonthOffset;
- Classes::TNotifyEvent FOnChange;
- System::Boolean FReadOnly;
- TDayOfWeek FStartOfWeek;
- System::Boolean FUpdating;
- System::Boolean FUseCurrentDate;
- System::AnsiString __fastcall GetCellText(System::Integer ACol, System::Integer ARow);
- System::Integer __fastcall GetDateElement(System::Integer Index);
- void __fastcall SetCalendarDate(System::TDateTime Value);
- void __fastcall SetDateElement(System::Integer Index, System::Integer Value);
- void __fastcall SetStartOfWeek(TDayOfWeek Value);
- void __fastcall SetUseCurrentDate(System::Boolean Value);
- System::Boolean __fastcall StoreCalendarDate(void);
-
- protected:
- virtual void __fastcall Change(void);
- void __fastcall ChangeMonth(System::Integer Delta);
- virtual void __fastcall Click(void);
- virtual System::Integer __fastcall DaysPerMonth(System::Integer AYear, System::Integer AMonth);
- virtual System::Integer __fastcall DaysThisMonth(void);
- virtual void __fastcall DrawCell(System::Longint ACol, System::Longint ARow, const Windows::TRect &ARect
- , Grids::TGridDrawState AState);
- virtual System::Boolean __fastcall IsLeapYear(System::Integer AYear);
- virtual System::Boolean __fastcall SelectCell(System::Longint ACol, System::Longint ARow);
- MESSAGE void __fastcall WMSize(Messages::TWMSize &Message);
-
- public:
- __fastcall virtual TCalendar(Classes::TComponent *AOwner);
- __property System::TDateTime CalendarDate = {read=FDate, write=SetCalendarDate, stored=StoreCalendarDate
- };
- __property System::AnsiString CellText[System::Integer ACol][System::Integer ARow] = {read=GetCellText
- };
- void __fastcall NextMonth(void);
- void __fastcall NextYear(void);
- void __fastcall PrevMonth(void);
- void __fastcall PrevYear(void);
- virtual void __fastcall UpdateCalendar(void);
-
- __published:
- __property Align ;
- __property BorderStyle ;
- __property Color ;
- __property Ctl3D ;
- __property System::Integer Day = {read=GetDateElement, write=SetDateElement, stored=false, index=3,
- nodefault};
- __property Enabled ;
- __property Font ;
- __property GridLineWidth ;
- __property System::Integer Month = {read=GetDateElement, write=SetDateElement, stored=false, index=2
- , nodefault};
- __property ParentColor ;
- __property ParentFont ;
- __property ParentShowHint ;
- __property PopupMenu ;
- __property System::Boolean ReadOnly = {read=FReadOnly, write=FReadOnly, default=0};
- __property ShowHint ;
- __property TDayOfWeek StartOfWeek = {read=FStartOfWeek, write=SetStartOfWeek, nodefault};
- __property TabOrder ;
- __property TabStop ;
- __property System::Boolean UseCurrentDate = {read=FUseCurrentDate, write=SetUseCurrentDate, default=1
- };
- __property Visible ;
- __property System::Integer Year = {read=GetDateElement, write=SetDateElement, stored=false, index=1
- , nodefault};
- __property OnClick ;
- __property Classes::TNotifyEvent OnChange = {read=FOnChange, write=FOnChange};
- __property OnDblClick ;
- __property OnDragDrop ;
- __property OnDragOver ;
- __property OnEndDrag ;
- __property OnEnter ;
- __property OnExit ;
- __property OnKeyDown ;
- __property OnKeyPress ;
- __property OnKeyUp ;
- public:
- /* !! TCustomGrid.Destroy */ __fastcall virtual ~TCalendar(void) { }
-
- };
-
- //-- var, const, procedure ---------------------------------------------------
-
- } /* namespace Calendar */
- #if !defined(NO_IMPLICIT_NAMESPACE_USE)
- using namespace Calendar;
- #endif
- //-- end unit ----------------------------------------------------------------
- #endif // Calendar
-