⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 epgauges.hpp

📁 漏洞扫描系列中HB Network Scanner 测试用练习代码
💻 HPP
字号:
// Borland C++ Builder
// Copyright (c) 1995, 2002 by Borland Software Corporation
// All rights reserved

// (DO NOT EDIT: machine generated header) 'EPGauges.pas' rev: 6.00

#ifndef EPGaugesHPP
#define EPGaugesHPP

#pragma delphiheader begin
#pragma option push -w-
#pragma option push -Vx
#include <Menus.hpp>	// Pascal unit
#include <EffBmp.hpp>	// Pascal unit
#include <VCLBase.hpp>	// Pascal unit
#include <GrUtils.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 Epgauges
{
//-- type declarations -------------------------------------------------------
#pragma option push -b-
enum TGaugeKind { gkHorizontalBar, gkVerticalBar };
#pragma option pop

class DELPHICLASS TepGauge;
class PASCALIMPLEMENTATION TepGauge : public Vclbase::TEffectGControl 
{
	typedef Vclbase::TEffectGControl inherited;
	
private:
	Graphics::TColor FFrameInnerColor;
	Graphics::TColor FFrameOuterColor;
	Graphics::TColor FBarInnerColor;
	Graphics::TColor FBarOuterColor;
	Graphics::TBitmap* FProgressGlyph;
	Graphics::TBitmap* FXGlyph;
	int FMinValue;
	int FMaxValue;
	int FCurValue;
	bool FShowText;
	bool FUseGlyph;
	int PWidth;
	int PHeight;
	int Persent;
	TGaugeKind FKind;
	Graphics::TColor FBarColor;
	void __fastcall SetFrameInnerColor(Graphics::TColor Value);
	void __fastcall SetFrameOuterColor(Graphics::TColor Value);
	void __fastcall SetBarInnerColor(Graphics::TColor Value);
	void __fastcall SetBarOuterColor(Graphics::TColor Value);
	void __fastcall SetFUseGlyph(bool Value);
	void __fastcall DrawGlyphInRect(const Types::TRect &R);
	void __fastcall SetWallpaper(Graphics::TBitmap* Value);
	void __fastcall PaintFrame(void);
	void __fastcall PaintProgressFrame(void);
	void __fastcall PaintText(void);
	void __fastcall SetMinValue(int Value);
	void __fastcall SetMaxValue(int Value);
	void __fastcall SetProgress(int Value);
	void __fastcall SetShowText(bool Value);
	void __fastcall SetGaugeKind(TGaugeKind Value);
	void __fastcall GetPercent(void);
	void __fastcall SetBarColor(Graphics::TColor Value);
	
protected:
	virtual void __fastcall PaintFace(void);
	
public:
	__fastcall virtual TepGauge(Classes::TComponent* AOwner);
	__fastcall virtual ~TepGauge(void);
	
__published:
	__property Graphics::TColor FrameInnerColor = {read=FFrameInnerColor, write=SetFrameInnerColor, nodefault};
	__property Graphics::TColor FrameOuterColor = {read=FFrameOuterColor, write=SetFrameOuterColor, nodefault};
	__property Graphics::TColor BarInnerColor = {read=FBarInnerColor, write=SetBarInnerColor, nodefault};
	__property Graphics::TColor BarOuterColor = {read=FBarOuterColor, write=SetBarOuterColor, nodefault};
	__property bool UseGlyph = {read=FUseGlyph, write=SetFUseGlyph, nodefault};
	__property Graphics::TBitmap* ProgressGlyph = {read=FProgressGlyph, write=SetWallpaper};
	__property Align  = {default=0};
	__property Color  = {default=-2147483643};
	__property Enabled  = {default=1};
	__property TGaugeKind Kind = {read=FKind, write=SetGaugeKind, default=0};
	__property bool ShowText = {read=FShowText, write=SetShowText, default=1};
	__property Graphics::TColor BarColor = {read=FBarColor, write=SetBarColor, nodefault};
	__property Font ;
	__property int MinValue = {read=FMinValue, write=SetMinValue, default=0};
	__property int MaxValue = {read=FMaxValue, write=SetMaxValue, default=100};
	__property ParentColor  = {default=1};
	__property ParentFont  = {default=1};
	__property ParentShowHint  = {default=1};
	__property int Progress = {read=FCurValue, write=SetProgress, nodefault};
	__property PopupMenu ;
	__property ShowHint ;
	__property Visible  = {default=1};
	__property OnMouseDown ;
	__property OnMouseMove ;
	__property OnMouseUp ;
	__property OnDragDrop ;
	__property OnDragOver ;
	__property OnEndDrag ;
	__property OnStartDrag ;
};


class DELPHICLASS TepEffectGauge;
class PASCALIMPLEMENTATION TepEffectGauge : public Controls::TGraphicControl 
{
	typedef Controls::TGraphicControl inherited;
	
private:
	int FMinValue;
	int FMaxValue;
	int FCurValue;
	bool FShowText;
	int PWidth;
	int PHeight;
	int Persent;
	TGaugeKind FKind;
	Graphics::TColor FBarColor;
	Byte FBorderWidth;
	Byte FShadowOffset;
	void __fastcall SetShadowOffset(Byte Value);
	void __fastcall SetBorderWidth(Byte Value);
	void __fastcall SetMinValue(int Value);
	void __fastcall SetMaxValue(int Value);
	void __fastcall SetProgress(int Value);
	void __fastcall SetShowText(bool Value);
	void __fastcall SetGaugeKind(TGaugeKind Value);
	void __fastcall GetPercent(void);
	void __fastcall SetBarColor(Graphics::TColor Value);
	
protected:
	virtual void __fastcall Paint(void);
	
public:
	__fastcall virtual TepEffectGauge(Classes::TComponent* AOwner);
	__fastcall virtual ~TepEffectGauge(void);
	
__published:
	__property Align  = {default=0};
	__property Color  = {default=-2147483643};
	__property Enabled  = {default=1};
	__property Byte ShadowOffset = {read=FShadowOffset, write=SetShadowOffset, nodefault};
	__property Byte BorderWidth = {read=FBorderWidth, write=SetBorderWidth, nodefault};
	__property TGaugeKind Kind = {read=FKind, write=SetGaugeKind, default=0};
	__property bool ShowText = {read=FShowText, write=SetShowText, default=1};
	__property Graphics::TColor BarColor = {read=FBarColor, write=SetBarColor, nodefault};
	__property Font ;
	__property int MinValue = {read=FMinValue, write=SetMinValue, default=0};
	__property int MaxValue = {read=FMaxValue, write=SetMaxValue, default=100};
	__property ParentColor  = {default=1};
	__property ParentFont  = {default=1};
	__property PopupMenu ;
	__property ParentShowHint  = {default=1};
	__property int Progress = {read=FCurValue, write=SetProgress, nodefault};
	__property ShowHint ;
	__property Visible  = {default=1};
	__property OnMouseDown ;
	__property OnMouseMove ;
	__property OnMouseUp ;
	__property OnDragDrop ;
	__property OnDragOver ;
	__property OnEndDrag ;
	__property OnStartDrag ;
};


//-- var, const, procedure ---------------------------------------------------

}	/* namespace Epgauges */
using namespace Epgauges;
#pragma option pop	// -w-
#pragma option pop	// -Vx

#pragma delphiheader end.
//-- end unit ----------------------------------------------------------------
#endif	// EPGauges

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -