home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 1999 January
/
Chip_1999-01_cd.bin
/
zkuste
/
delphi
/
D3
/
EDTOOL.ZIP
/
PVLCLK.HPP
< prev
next >
Wrap
C/C++ Source or Header
|
1998-10-07
|
5KB
|
133 lines
//----------------------------------------------------------------------------
// pvlClk.hpp - bcbdcc32 generated hdr (DO NOT EDIT) rev: 0
// From: pvlClk.pas
//----------------------------------------------------------------------------
#ifndef pvlClkHPP
#define pvlClkHPP
//----------------------------------------------------------------------------
#include <Dialogs.hpp>
#include <Forms.hpp>
#include <Controls.hpp>
#include <Graphics.hpp>
#include <Classes.hpp>
#include <SysUtils.hpp>
#include <Messages.hpp>
#include <Windows.hpp>
#include <System.hpp>
namespace Pvlclk
{
//-- type declarations -------------------------------------------------------
class __declspec(delphiclass) TClockStyle;
class __declspec(pascalimplementation) TClockStyle : public Classes::TPersistent
{
typedef Classes::TPersistent inherited;
private:
Graphics::TColor fback;
Graphics::TColor fHands;
Graphics::TColor fMajor;
Graphics::TColor fLines;
bool fsecs;
Classes::TNotifyEvent fonChange;
bool fCircle;
bool fminor;
protected:
void __fastcall setsecs(bool p0);
void __fastcall setCircle(bool p0);
void __fastcall setMinor(bool p0);
void __fastcall setmajor(Graphics::TColor p0);
void __fastcall sethands(Graphics::TColor p0);
void __fastcall setback(Graphics::TColor p0);
void __fastcall setLines(Graphics::TColor p0);
public:
__fastcall TClockStyle(void);
virtual void __fastcall change(void);
__property Classes::TNotifyEvent onchange = {read=fonChange, write=fonChange};
__published:
__property Graphics::TColor BackgroundColor = {read=fback, write=setback, default=-2147483633};
__property Graphics::TColor HandsColor = {read=fHands, write=sethands, default=255};
__property Graphics::TColor MajorColor = {read=fMajor, write=setmajor, default=16777215};
__property Graphics::TColor LineColor = {read=fLines, write=setLines, nodefault};
__property bool ShowSeconds = {read=fsecs, write=setsecs, nodefault};
__property bool ShowCircle = {read=fCircle, write=setCircle, nodefault};
__property bool ShowMinor = {read=fminor, write=setMinor, nodefault};
public:
/* TObject.Destroy */ __fastcall virtual ~TClockStyle(void) { }
};
class __declspec(delphiclass) TCustompvlClock;
class __declspec(pascalimplementation) TCustompvlClock : public Controls::TGraphicControl
{
typedef Controls::TGraphicControl inherited;
private:
int finnerwidth;
Graphics::TBitmap* fbmp;
System::TDateTime ftime;
TClockStyle* fStyle;
tagPOINT fLastXY;
void __fastcall setabout( System::AnsiString p0);
System::AnsiString __fastcall getabout(void);
protected:
virtual void __fastcall paint(void);
void __fastcall settime(System::TDateTime p0);
void __fastcall stylechange(System::TObject* p0);
public:
__fastcall virtual TCustompvlClock(Classes::TComponent* p0);
__fastcall virtual ~TCustompvlClock(void);
__property System::TDateTime Time = {read=ftime, write=settime};
virtual void __fastcall MouseDown(Controls::TMouseButton p0, Classes::TShiftState p1, int p2, int p3
);
__property TClockStyle* Style = {read=fStyle, write=fStyle, nodefault};
__property tagPOINT LastXY = {read=fLastXY};
System::TDateTime __fastcall LastTime(void);
int __fastcall LastMinuteSeg(void);
bool __fastcall LastWithinHourHand(void);
System::TDateTime __fastcall Timefrompoint(const tagPOINT &pvlClk_);
int __fastcall MinuteSegfromPoint(const tagPOINT &pvlClk_);
bool __fastcall WithinHourHandfromPoint(const tagPOINT &pvlClk_);
__published:
__property System::AnsiString About = {read=getabout, write=setabout, stored=false, nodefault};
};
class __declspec(delphiclass) TpvlClock;
class __declspec(pascalimplementation) TpvlClock : public TCustompvlClock
{
typedef TCustompvlClock inherited;
__published:
__property Align ;
__property Style ;
__property OnClick ;
__property OnDblClick ;
__property OnDragDrop ;
__property OnDragOver ;
__property OnEndDrag ;
__property OnMouseDown ;
__property OnMouseMove ;
__property OnMouseUp ;
__property OnStartDrag ;
__property Visible ;
public:
/* TCustompvlClock.Create */ __fastcall virtual TpvlClock(Classes::TComponent* p0) : Pvlclk::TCustompvlClock(
p0) { }
/* TCustompvlClock.Destroy */ __fastcall virtual ~TpvlClock(void) { }
};
//-- var, const, procedure ---------------------------------------------------
} /* namespace Pvlclk */
#if !defined(NO_IMPLICIT_NAMESPACE_USE)
using namespace Pvlclk;
#endif
//-- end unit ----------------------------------------------------------------
#endif // pvlClk