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

📄 epbuttons.hpp

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

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

#ifndef EPButtonsHPP
#define EPButtonsHPP

#pragma delphiheader begin
#pragma option push -w-
#pragma option push -Vx
#include <Menus.hpp>	// Pascal unit
#include <wavctrl.hpp>	// Pascal unit
#include <EffBmp.hpp>	// Pascal unit
#include <PtInForm.hpp>	// Pascal unit
#include <ExtCtrls.hpp>	// Pascal unit
#include <Dialogs.hpp>	// Pascal unit
#include <BMPUtils.hpp>	// Pascal unit
#include <VCLBase.hpp>	// Pascal unit
#include <GrUtils.hpp>	// Pascal unit
#include <Graphics.hpp>	// Pascal unit
#include <Forms.hpp>	// Pascal unit
#include <Controls.hpp>	// Pascal unit
#include <Classes.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 Epbuttons
{
//-- type declarations -------------------------------------------------------
#pragma option push -b-
enum TButtonState { bsUp, bsDisabled, bsDown, bsExclusive };
#pragma option pop

typedef Shortint TNumGlyphs;

class DELPHICLASS TepSpeedButton;
class PASCALIMPLEMENTATION TepSpeedButton : public Vclbase::TEffectGControl 
{
	typedef Vclbase::TEffectGControl inherited;
	
private:
	Graphics::TColor FActiveTextColor;
	Byte FFrameWidth;
	Graphics::TBitmap* Pattern;
	Graphics::TColor FPatternColor;
	Graphics::TColor FInnerColor;
	Graphics::TColor FOuterColor;
	int FGroupIndex;
	bool FDown;
	bool FDragging;
	bool FAllowAllUp;
	int FSpacing;
	int FMargin;
	bool FFlat;
	bool FMouseInControl;
	Graphics::TBitmap* FGlyph;
	Vclbase::TLayout FLayout;
	TNumGlyphs FNumGlyphs;
	int xt;
	int yt;
	int xg;
	int yg;
	Wavctrl::TepWavePlayer* FClickSound;
	Wavctrl::TepWavePlayer* FActiveSound;
	bool FMiddleTransparent;
	bool FGradEffect;
	Effbmp::TGradKind FGradKind;
	Graphics::TColor FGradColor;
	Graphics::TColor FActiveGradColor;
	void __fastcall SetActiveGradColor(Graphics::TColor Value);
	void __fastcall SetGradColor(Graphics::TColor Value);
	void __fastcall SetGradKind(Effbmp::TGradKind Value);
	void __fastcall SetGradEffect(bool Value);
	void __fastcall SetMiddleTransparent(bool Value);
	void __fastcall SetGlyph(Graphics::TBitmap* Value);
	void __fastcall SetNumGlyphs(TNumGlyphs Value);
	void __fastcall SetLayout(Vclbase::TLayout Value);
	void __fastcall SetFrameWidth(Byte Value);
	void __fastcall SetInnerColor(Graphics::TColor Value);
	void __fastcall SetOuterColor(Graphics::TColor Value);
	void __fastcall UpdateExclusive(void);
	void __fastcall SetDown(bool Value);
	void __fastcall SetFlat(bool Value);
	void __fastcall SetAllowAllUp(bool Value);
	void __fastcall SetGroupIndex(int Value);
	void __fastcall SetSpacing(int Value);
	void __fastcall SetMargin(int Value);
	void __fastcall UpdateTracking(void);
	HIDESBASE MESSAGE void __fastcall WMLButtonDblClk(Messages::TWMMouse &Message);
	HIDESBASE MESSAGE void __fastcall CMEnabledChanged(Messages::TMessage &Message);
	MESSAGE void __fastcall CMButtonPressed(Messages::TMessage &Message);
	MESSAGE void __fastcall CMDialogChar(Messages::TWMKey &Message);
	HIDESBASE MESSAGE void __fastcall CMFontChanged(Messages::TMessage &Message);
	MESSAGE void __fastcall CMTextChanged(Messages::TMessage &Message);
	HIDESBASE MESSAGE void __fastcall CMMouseEnter(Messages::TMessage &Message);
	HIDESBASE MESSAGE void __fastcall CMMouseLeave(Messages::TMessage &Message);
	
protected:
	TButtonState FState;
	void __fastcall SetLayoutCoord(void);
	void __fastcall DrawButtonGlyph(void);
	void __fastcall CreateBrushPattern(Graphics::TColor C);
	virtual void __fastcall Loaded(void);
	DYNAMIC void __fastcall MouseDown(Controls::TMouseButton Button, Classes::TShiftState Shift, int X, int Y);
	DYNAMIC void __fastcall MouseMove(Classes::TShiftState Shift, int X, int Y);
	DYNAMIC void __fastcall MouseUp(Controls::TMouseButton Button, Classes::TShiftState Shift, int X, int Y);
	virtual void __fastcall PaintFace(void);
	virtual void __fastcall PaintEffects(void);
	DYNAMIC void __fastcall ActionChange(System::TObject* Sender, bool CheckDefaults);
	
public:
	__fastcall virtual TepSpeedButton(Classes::TComponent* AOwner);
	__fastcall virtual ~TepSpeedButton(void);
	DYNAMIC void __fastcall Click(void);
	virtual void __fastcall Notification(Classes::TComponent* AComponent, Classes::TOperation Operation);
	
__published:
	__property Action ;
	__property Graphics::TColor ActiveGradColor = {read=FActiveGradColor, write=SetActiveGradColor, nodefault};
	__property Graphics::TColor GradColor = {read=FGradColor, write=SetGradColor, nodefault};
	__property bool GradEffect = {read=FGradEffect, write=SetGradEffect, nodefault};
	__property Effbmp::TGradKind GradKind = {read=FGradKind, write=SetGradKind, nodefault};
	__property bool MiddleTransparent = {read=FMiddleTransparent, write=SetMiddleTransparent, nodefault};
	__property Wavctrl::TepWavePlayer* ClickSound = {read=FClickSound, write=FClickSound};
	__property Wavctrl::TepWavePlayer* ActiveSound = {read=FActiveSound, write=FActiveSound};
	__property Graphics::TColor ActiveTextColor = {read=FActiveTextColor, write=FActiveTextColor, nodefault};
	__property Vclbase::TLayout Layout = {read=FLayout, write=SetLayout, default=0};
	__property TNumGlyphs NumGlyphs = {read=FNumGlyphs, write=SetNumGlyphs, default=1};
	__property Graphics::TBitmap* Glyph = {read=FGlyph, write=SetGlyph};
	__property Byte FrameWidth = {read=FFrameWidth, write=SetFrameWidth, nodefault};
	__property Graphics::TColor InnerColor = {read=FInnerColor, write=SetInnerColor, nodefault};
	__property Graphics::TColor OuterColor = {read=FOuterColor, write=SetOuterColor, nodefault};
	__property Graphics::TColor PatternColor = {read=FPatternColor, write=FPatternColor, nodefault};
	__property bool AllowAllUp = {read=FAllowAllUp, write=SetAllowAllUp, default=0};
	__property int GroupIndex = {read=FGroupIndex, write=SetGroupIndex, default=0};
	__property bool Down = {read=FDown, write=SetDown, default=0};
	__property Color  = {default=-2147483643};
	__property Caption ;
	__property Enabled  = {default=1};
	__property PopupMenu ;
	__property bool Flat = {read=FFlat, write=SetFlat, default=0};
	__property Font ;
	__property int Margin = {read=FMargin, write=SetMargin, default=-1};
	__property ParentFont  = {default=1};
	__property ParentShowHint  = {default=1};
	__property ShowHint ;
	__property int Spacing = {read=FSpacing, write=SetSpacing, default=4};
	__property Visible  = {default=1};
	__property OnClick ;
	__property OnDblClick ;
	__property OnMouseDown ;
	__property OnMouseMove ;
	__property OnMouseUp ;
};


class DELPHICLASS TepLabelButton;
class PASCALIMPLEMENTATION TepLabelButton : public Vclbase::TButtonGControl 
{
	typedef Vclbase::TButtonGControl inherited;
	
private:
	bool FEfCaption;
	HIDESBASE MESSAGE void __fastcall CMTextChanged(Messages::TMessage &Message);
	void __fastcall SetCoord(void);
	
protected:
	virtual void __fastcall PaintFace(void);
	
public:
	__fastcall virtual TepLabelButton(Classes::TComponent* AOwner);
	__fastcall virtual ~TepLabelButton(void);
	
__published:
	__property Layout  = {default=0};
	__property bool EfCaption = {read=FEfCaption, write=FEfCaption, nodefault};
	__property Color  = {default=-2147483643};
	__property Font ;
	__property Caption ;
	__property Graphics::TColor ActiveTextColor = {read=FActiveTextColor, write=FActiveTextColor, nodefault};
	__property OnClick ;
	__property DragCursor  = {default=-12};
	__property DragMode  = {default=0};
	__property Enabled  = {default=1};
	__property ParentShowHint  = {default=1};
	__property ShowHint ;
	__property Visible  = {default=1};
	__property PopupMenu ;
	__property ParentFont  = {default=1};
	__property OnMouseDown ;
	__property OnMouseMove ;
	__property OnMouseUp ;
	__property OnDragDrop ;
	__property OnDragOver ;
	__property OnEndDrag ;
	__property OnStartDrag ;
};


typedef Shortint TSmType;

class DELPHICLASS TepEfButton;
class PASCALIMPLEMENTATION TepEfButton : public Vclbase::TButtonGControl 
{
	typedef Vclbase::TButtonGControl inherited;
	
private:
	TSmType FFrameWidth;
	TSmType FBtnFrameWidth;
	Graphics::TColor FBtnColor;
	bool FEfCaption;
	void __fastcall SetBtnFrameWidth(TSmType Value);
	void __fastcall SetBtnColor(Graphics::TColor Value);
	void __fastcall SetFrameWidth(TSmType Value);
	
public:
	__fastcall virtual TepEfButton(Classes::TComponent* AOwner);
	__fastcall virtual ~TepEfButton(void);
	
__published:
	__property Layout  = {default=0};
	__property Margin  = {default=-1};
	__property Spacing  = {default=4};
	__property bool EfCaption = {read=FEfCaption, write=FEfCaption, nodefault};
	__property TSmType BtnFrameWidth = {read=FBtnFrameWidth, write=SetBtnFrameWidth, nodefault};
	__property Graphics::TColor BtnColor = {read=FBtnColor, write=SetBtnColor, nodefault};
	__property TSmType FrameWidth = {read=FFrameWidth, write=SetFrameWidth, nodefault};
	__property PopupMenu ;
	__property ParentFont  = {default=1};
	__property Caption ;
	__property Color  = {default=-2147483643};
	__property DragCursor  = {default=-12};
	__property DragMode  = {default=0};
	__property Enabled  = {default=1};
	__property Font ;
	__property ParentColor  = {default=1};
	__property ParentShowHint  = {default=1};
	__property ShowHint ;
	__property Visible  = {default=1};
	__property OnDragDrop ;
	__property OnDragOver ;
	__property OnEndDrag ;
	__property OnStartDrag ;
	__property OnMouseDown ;
	__property OnMouseMove ;
	__property OnMouseUp ;
	
protected:
	void __fastcall SetLayoutCoord(void);
	virtual void __fastcall PaintFace(void);
	virtual void __fastcall PaintEffects(void);
	void __fastcall DrawRectBtn(void);
};


class DELPHICLASS TepColorButton;
class PASCALIMPLEMENTATION TepColorButton : public Vclbase::TEffectGControl 
{
	typedef Vclbase::TEffectGControl inherited;
	
private:
	int FOffsetX;
	int FOffsetY;
	int FMarkX;
	int FMarkY;
	bool FUseFrame;
	Vclbase::TLayout FLayout;
	int FSpacing;
	int FMargin;
	bool FDown;
	bool FMouseIn;
	int FMarkWidth;
	int FMarkHeight;
	Graphics::TColor FInnerColor;
	Graphics::TColor FOuterColor;
	Classes::TNotifyEvent FOnChange;
	Graphics::TBitmap* FGlyph;
	Graphics::TColor FActiveTextColor;
	bool FEfCaption;
	Dialogs::TColorDialog* FColorDialog;
	Graphics::TColor FColorValue;
	TNumGlyphs FNumGlyphs;
	int tx;
	int ty;
	int gx;
	int gy;
	Wavctrl::TepWavePlayer* FClickSound;
	Wavctrl::TepWavePlayer* FActiveSound;
	void __fastcall SetOffsetX(int Value);
	void __fastcall SetOffsetY(int Value);
	void __fastcall SetMarkX(int Value);
	void __fastcall SetMarkY(int Value);
	void __fastcall SetLayout(Vclbase::TLayout Value);
	void __fastcall SetNumGlyphs(TNumGlyphs Value);
	void __fastcall SetSpacing(int Value);
	void __fastcall SetMargin(int Value);
	void __fastcall SetMarkWidth(int Value);
	void __fastcall SetMarkHeight(int Value);
	void __fastcall SetColorValue(Graphics::TColor Value);
	void __fastcall SetGlyph(Graphics::TBitmap* Value);
	void __fastcall SetInnerColor(Graphics::TColor Value);
	void __fastcall SetOuterColor(Graphics::TColor Value);

⌨️ 快捷键说明

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