📄 vrblinkled.hpp
字号:
// Borland C++ Builder
// Copyright (c) 1995, 1999 by Borland International
// All rights reserved
// (DO NOT EDIT: machine generated header) 'VrBlinkLed.pas' rev: 5.00
#ifndef VrBlinkLedHPP
#define VrBlinkLedHPP
#pragma delphiheader begin
#pragma option push -w-
#pragma option push -Vx
#include <Menus.hpp> // Pascal unit
#include <Math.hpp> // Pascal unit
#include <ExtCtrls.hpp> // Pascal unit
#include <VrSysUtils.hpp> // Pascal unit
#include <VrControls.hpp> // Pascal unit
#include <VrClasses.hpp> // Pascal unit
#include <Dialogs.hpp> // Pascal unit
#include <Forms.hpp> // Pascal unit
#include <Controls.hpp> // Pascal unit
#include <Graphics.hpp> // Pascal unit
#include <Classes.hpp> // Pascal unit
#include <SysUtils.hpp> // Pascal unit
#include <Messages.hpp> // Pascal unit
#include <Windows.hpp> // Pascal unit
#include <SysInit.hpp> // Pascal unit
#include <System.hpp> // Pascal unit
//-- user supplied -----------------------------------------------------------
namespace Vrblinkled
{
//-- type declarations -------------------------------------------------------
#pragma option push -b-
enum TVrBlinkLedType { ltRounded, ltRectangle, ltLargeRect };
#pragma option pop
class DELPHICLASS TVrCustomBlinkLed;
class PASCALIMPLEMENTATION TVrCustomBlinkLed : public Vrcontrols::TVrGraphicImageControl
{
typedef Vrcontrols::TVrGraphicImageControl inherited;
private:
bool FEnableBlinking;
Extctrls::TTimer* BlinkingTimer;
int FBlinkSpeed;
TVrBlinkLedType FBlinkLedType;
Vrclasses::TVrPalette* FPalette1;
Vrclasses::TVrPalette* FPalette2;
Vrclasses::TVrPalette* FPalette3;
Vrclasses::TVrPalette* FPalette4;
bool FActive;
int FSpacing;
int FMargin;
Vrcontrols::TVrImageTextLayout FLayout;
Classes::TNotifyEvent FOnChange;
Windows::TRect FImageRect;
Windows::TRect FTextBounds;
Byte FColorIndex;
void __fastcall SetActive(bool Value);
void __fastcall SetBlinkLedType(TVrBlinkLedType Value);
void __fastcall SetLayout(Vrcontrols::TVrImageTextLayout Value);
void __fastcall SetMargin(int Value);
void __fastcall SetSpacing(int Value);
void __fastcall PaletteModified(System::TObject* Sender);
HIDESBASE MESSAGE void __fastcall CMTextChanged(Messages::TMessage &Message);
MESSAGE void __fastcall CMSysColorChange(Messages::TMessage &Message);
void __fastcall SetEnableBlinking(const bool Value);
void __fastcall blink(System::TObject* sendet);
void __fastcall SetBlinkSpeed(const int Value);
void __fastcall SetPalette1(Vrclasses::TVrPalette* Value);
void __fastcall SetPalette2(Vrclasses::TVrPalette* Value);
void __fastcall SetPalette3(Vrclasses::TVrPalette* Value);
void __fastcall SetPalette4(Vrclasses::TVrPalette* Value);
void __fastcall SetColorIndex(Byte Value);
void __fastcall CalcPaintParams(void);
void __fastcall drawled(void);
void __fastcall drawcaption(void);
void __fastcall DrawRounded(void);
void __fastcall DrawRectangle(void);
Graphics::TColor __fastcall loadcolor(void);
protected:
virtual void __fastcall Paint(void);
HIDESBASEDYNAMIC void __fastcall Changed(void);
__property bool Active = {read=FActive, write=SetActive, default=0};
__property Vrclasses::TVrPalette* Palette1 = {read=FPalette1, write=SetPalette1};
__property Vrclasses::TVrPalette* Palette2 = {read=FPalette2, write=SetPalette2};
__property Vrclasses::TVrPalette* Palette3 = {read=FPalette3, write=SetPalette3};
__property Vrclasses::TVrPalette* Palette4 = {read=FPalette4, write=SetPalette4};
__property TVrBlinkLedType BlinkLedType = {read=FBlinkLedType, write=SetBlinkLedType, default=0};
__property Vrcontrols::TVrImageTextLayout Layout = {read=FLayout, write=SetLayout, default=0};
__property int Margin = {read=FMargin, write=SetMargin, default=-1};
__property int Spacing = {read=FSpacing, write=SetSpacing, default=5};
__property Classes::TNotifyEvent OnChange = {read=FOnChange, write=FOnChange};
__property bool EnableBlinking = {read=FEnableBlinking, write=SetEnableBlinking, default=0};
__property int BlinkSpeed = {read=FBlinkSpeed, write=SetBlinkSpeed, default=1000};
__property Byte ColorIndex = {read=FColorIndex, write=SetColorIndex, default=1};
public:
__fastcall virtual TVrCustomBlinkLed(Classes::TComponent* AOwner);
__fastcall virtual ~TVrCustomBlinkLed(void);
};
class DELPHICLASS TVrBlinkLed;
class PASCALIMPLEMENTATION TVrBlinkLed : public TVrCustomBlinkLed
{
typedef TVrCustomBlinkLed inherited;
__published:
__property Palette1 ;
__property Palette2 ;
__property Palette3 ;
__property Palette4 ;
__property BlinkLedType ;
__property Layout ;
__property Margin ;
__property Spacing ;
__property Transparent ;
__property OnChange ;
__property Align ;
__property Anchors ;
__property BiDiMode ;
__property Constraints ;
__property Caption ;
__property Color ;
__property DragCursor ;
__property DragKind ;
__property DragMode ;
__property Font ;
__property Hint ;
__property ParentBiDiMode ;
__property ParentColor ;
__property ParentFont ;
__property ParentShowHint ;
__property PopupMenu ;
__property ShowHint ;
__property Visible ;
__property OnClick ;
__property OnContextPopup ;
__property OnDragDrop ;
__property OnDragOver ;
__property OnEndDock ;
__property OnEndDrag ;
__property OnMouseDown ;
__property OnMouseMove ;
__property OnMouseUp ;
__property OnStartDock ;
__property OnStartDrag ;
__property EnableBlinking ;
__property BlinkSpeed ;
__property ColorIndex ;
public:
#pragma option push -w-inl
/* TVrCustomBlinkLed.Create */ inline __fastcall virtual TVrBlinkLed(Classes::TComponent* AOwner) :
TVrCustomBlinkLed(AOwner) { }
#pragma option pop
#pragma option push -w-inl
/* TVrCustomBlinkLed.Destroy */ inline __fastcall virtual ~TVrBlinkLed(void) { }
#pragma option pop
};
typedef void __fastcall (__closure *TVrUserBlinkLedDrawEvent)(System::TObject* Sender, Graphics::TCanvas*
Canvas, const Windows::TRect &Rect);
//-- var, const, procedure ---------------------------------------------------
} /* namespace Vrblinkled */
#if !defined(NO_IMPLICIT_NAMESPACE_USE)
using namespace Vrblinkled;
#endif
#pragma option pop // -w-
#pragma option pop // -Vx
#pragma delphiheader end.
//-- end unit ----------------------------------------------------------------
#endif // VrBlinkLed
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -