www.pudn.com > mfcdraw.zip > ATStat.hpp
// Borland C++ Builder // Copyright (c) 1995, 1998 by Borland International // All rights reserved // (DO NOT EDIT: machine generated header) 'ATStat.pas' rev: 3.00 #ifndef ATStatHPP #define ATStatHPP #include#include #include #include #include #include #include #include #include #include #include #include //-- user supplied ----------------------------------------------------------- namespace Atstat { //-- type declarations ------------------------------------------------------- typedef int TTimerID; enum TMode { mdStatusbar, mdProgressbar }; enum TDayLanguage { lgEnglish, lgDutch, lgGerman, lgFrench }; enum TBeep { bpNo, bpSecond }; enum TAlarm { alOff, alOn }; enum TAlarmType { atNone, atBeepx2, atBeepx2UpDown, atBeepx10, atQuickBeep, atBeepx10UpDown, atUpDown }; class DELPHICLASS TATStatusbar; class PASCALIMPLEMENTATION TATStatusbar : public Comctrls::TStatusBar { typedef Comctrls::TStatusBar inherited; private: TDayLanguage FDayLanguage; Classes::TNotifyEvent FOnResize; Classes::TNotifyEvent FOnTimer; Classes::TNotifyEvent FOnAlarm; int FTimerID; HWND FWindowHandle; bool FDisplayTime; bool FDisplayDate; bool FDisplayDay; TMode FMode; TBeep FBeep; int FBeepTime; Word FBeepFreq; TAlarm FAlarm; System::AnsiString FAlarmTime; TAlarmType FAlarmType; int FInterval; bool FRing; Graphics::TColor FProgresscolor; int FProgress; HIDESBASE MESSAGE void __fastcall WMSize(Messages::TWMSize &Message); void __fastcall SetOnTimer(Classes::TNotifyEvent Value); void __fastcall SetOnAlarm(Classes::TNotifyEvent Value); void __fastcall ShowDateTime(void); void __fastcall UpdateTimer(void); HIDESBASE void __fastcall WndProc(Messages::TMessage &Msg); void __fastcall SetDDate(bool Value); void __fastcall SetDTime(bool Value); void __fastcall SetDDay(bool Value); void __fastcall SetDLanguage(TDayLanguage Value); void __fastcall SetProgress(int Value); void __fastcall SetBeepTime(int Value); void __fastcall SetMode(TMode Value); void __fastcall NoSound(void); void __fastcall Sound(Word Freq); void __fastcall SetInterval(int Value); __property int TimerID = {read=FTimerID, write=FTimerID, nodefault}; void __fastcall SetPort(Word address, Word value); Word __fastcall GetPort(Word address); int __fastcall SolveForX(int Y, int Z); int __fastcall SolveForY(int X, int Z); protected: DYNAMIC void __fastcall Timer(void); public: void __fastcall Delay(int MSecs); void __fastcall Play(Word Freq, int MSecs); void __fastcall Stop(void); __fastcall virtual TATStatusbar(Classes::TComponent* AOwner); __fastcall virtual ~TATStatusbar(void); __published: __property Align ; __property TAlarm Alarm = {read=FAlarm, write=FAlarm, nodefault}; __property System::AnsiString AlarmTime = {read=FAlarmTime, write=FAlarmTime}; __property TAlarmType AlarmType = {read=FAlarmType, write=FAlarmType, nodefault}; __property TBeep Beep = {read=FBeep, write=FBeep, nodefault}; __property int BeepTime = {read=FBeepTime, write=SetBeepTime, nodefault}; __property Word BeepFreq = {read=FBeepFreq, write=FBeepFreq, nodefault}; __property Cursor ; __property bool DisplayDate = {read=FDisplayDate, write=SetDDate, default=1}; __property bool DisplayTime = {read=FDisplayTime, write=SetDTime, default=1}; __property bool DisplayDay = {read=FDisplayDay, write=SetDDay, default=1}; __property TMode Mode = {read=FMode, write=SetMode, nodefault}; __property DragCursor ; __property DragMode ; __property Enabled ; __property Font ; __property Height ; __property HelpContext ; __property Hint ; __property int Interval = {read=FInterval, write=SetInterval, nodefault}; __property TDayLanguage DayLanguage = {read=FDayLanguage, write=SetDLanguage, default=0}; __property Left ; __property Name ; __property Panels ; __property ParentFont ; __property ParentShowHint ; __property PopupMenu ; __property int Progress = {read=FProgress, write=SetProgress, nodefault}; __property ShowHint ; __property SimplePanel ; __property SimpleText ; __property SizeGrip ; __property Tag ; __property Top ; __property Visible ; __property Width ; __property OnClick ; __property OnDblClick ; __property OnDragDrop ; __property OnDragOver ; __property OnDrawPanel ; __property OnEndDrag ; __property OnMouseDown ; __property OnMouseMove ; __property OnMouseUp ; __property Classes::TNotifyEvent OnResize = {read=FOnResize, write=FOnResize}; __property OnStartDrag ; __property Classes::TNotifyEvent OnTimer = {read=FOnTimer, write=SetOnTimer}; __property Classes::TNotifyEvent OnAlarm = {read=FOnAlarm, write=SetOnAlarm}; __property Graphics::TColor ProgressColor = {read=FProgresscolor, write=FProgresscolor, nodefault}; public: /* TWinControl.CreateParented */ __fastcall TATStatusbar(HWND ParentWindow) : Comctrls::TStatusBar( ParentWindow) { } }; //-- var, const, procedure --------------------------------------------------- extern PACKAGE void __fastcall Register(void); } /* namespace Atstat */ #if !defined(NO_IMPLICIT_NAMESPACE_USE) using namespace Atstat; #endif //-- end unit ---------------------------------------------------------------- #endif // ATStat