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

📄 vrdigit.hpp

📁 wimax bs simulator对应的GUI程序
💻 HPP
字号:
// Borland C++ Builder
// Copyright (c) 1995, 1999 by Borland International
// All rights reserved

// (DO NOT EDIT: machine generated header) 'VrDigit.pas' rev: 5.00

#ifndef VrDigitHPP
#define VrDigitHPP

#pragma delphiheader begin
#pragma option push -w-
#pragma option push -Vx
#include <Menus.hpp>	// Pascal unit
#include <SysUtils.hpp>	// Pascal unit
#include <VrControls.hpp>	// Pascal unit
#include <VrClasses.hpp>	// Pascal unit
#include <Forms.hpp>	// Pascal unit
#include <Controls.hpp>	// Pascal unit
#include <Graphics.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 Vrdigit
{
//-- type declarations -------------------------------------------------------
typedef Shortint TVrDigitValues;

#pragma option push -b-
enum TVrDigitSegment { seg1, seg2, seg3, seg4, seg5, seg6, seg7, seg8 };
#pragma option pop

typedef Set<TVrDigitSegment, seg1, seg8>  TVrDigitSegments;

class DELPHICLASS TVrDigit;
class PASCALIMPLEMENTATION TVrDigit : public Vrcontrols::TVrGraphicImageControl 
{
	typedef Vrcontrols::TVrGraphicImageControl inherited;
	
private:
	Byte FBinaryValue;
	Byte FValue;
	TVrDigitSegments FSegments;
	bool FShowDecimal;
	Vrclasses::TVrPalette* FPalette;
	bool FActiveOnly;
	Graphics::TColor FOutlineColor;
	Classes::TNotifyEvent FOnChange;
	void __fastcall SetBinaryValue(Byte Value);
	void __fastcall SetSegments(TVrDigitSegments Value);
	void __fastcall SetShowDecimal(bool Value);
	void __fastcall SetActiveOnly(bool Value);
	void __fastcall SetOutlineColor(Graphics::TColor Value);
	void __fastcall SetPalette(Vrclasses::TVrPalette* Value);
	void __fastcall PaletteModified(System::TObject* Sender);
	Byte __fastcall GetValue(void);
	void __fastcall SetValue(const Byte Value);
	
protected:
	DYNAMIC void __fastcall Change(void);
	virtual void __fastcall Paint(void);
	
public:
	__fastcall virtual TVrDigit(Classes::TComponent* AOwner);
	__fastcall virtual ~TVrDigit(void);
	Byte __fastcall Value2Bin(TVrDigitValues Value, bool Decimal);
	__property Byte Value = {read=GetValue, write=SetValue, nodefault};
	
__published:
	__property Byte BinaryValue = {read=FBinaryValue, write=SetBinaryValue, default=125};
	__property TVrDigitSegments Segments = {read=FSegments, write=SetSegments, default=255};
	__property bool ShowDecimal = {read=FShowDecimal, write=SetShowDecimal, default=1};
	__property Vrclasses::TVrPalette* Palette = {read=FPalette, write=SetPalette};
	__property bool ActiveOnly = {read=FActiveOnly, write=SetActiveOnly, default=0};
	__property Transparent ;
	__property Graphics::TColor OutlineColor = {read=FOutlineColor, write=SetOutlineColor, default=0};
	__property Classes::TNotifyEvent OnChange = {read=FOnChange, write=FOnChange};
	__property Align ;
	__property DragCursor ;
	__property Anchors ;
	__property DragKind ;
	__property DragMode ;
	__property Color ;
	__property Constraints ;
	__property ParentColor ;
	__property ParentShowHint ;
	__property PopupMenu ;
	__property ShowHint ;
	__property Visible ;
	__property OnClick ;
	__property OnContextPopup ;
	__property OnDblClick ;
	__property OnDragDrop ;
	__property OnDragOver ;
	__property OnEndDock ;
	__property OnEndDrag ;
	__property OnMouseDown ;
	__property OnMouseMove ;
	__property OnMouseUp ;
	__property OnStartDock ;
	__property OnStartDrag ;
};


class DELPHICLASS TVrDigitGroup;
class PASCALIMPLEMENTATION TVrDigitGroup : public Vrcontrols::TVrGraphicImageControl 
{
	typedef Vrcontrols::TVrGraphicImageControl inherited;
	
private:
	double FValue;
	int FDigits;
	int FDecimals;
	Vrclasses::TVrPalette* FPalette;
	bool FActiveOnly;
	Graphics::TColor FOutlineColor;
	bool FLeadingZero;
	Classes::TNotifyEvent FOnChange;
	void __fastcall SetValue(double Value);
	void __fastcall SetDecimals(int Value);
	void __fastcall SetDigits(int Value);
	void __fastcall SetActiveOnly(bool Value);
	void __fastcall SetLeadingZero(bool Value);
	void __fastcall SetOutlineColor(Graphics::TColor Value);
	void __fastcall SetPalette(Vrclasses::TVrPalette* Value);
	void __fastcall PaletteModified(System::TObject* Sender);
	
protected:
	DYNAMIC void __fastcall Change(void);
	virtual void __fastcall Paint(void);
	
public:
	__fastcall virtual TVrDigitGroup(Classes::TComponent* AOwner);
	__fastcall virtual ~TVrDigitGroup(void);
	
__published:
	__property double Value = {read=FValue, write=SetValue};
	__property int Decimals = {read=FDecimals, write=SetDecimals, default=3};
	__property int Digits = {read=FDigits, write=SetDigits, default=4};
	__property Vrclasses::TVrPalette* Palette = {read=FPalette, write=SetPalette};
	__property bool ActiveOnly = {read=FActiveOnly, write=SetActiveOnly, default=0};
	__property bool LeadingZero = {read=FLeadingZero, write=SetLeadingZero, default=1};
	__property Transparent ;
	__property Graphics::TColor OutlineColor = {read=FOutlineColor, write=SetOutlineColor, default=0};
	__property Classes::TNotifyEvent OnChange = {read=FOnChange, write=FOnChange};
	__property Align ;
	__property DragCursor ;
	__property Anchors ;
	__property DragKind ;
	__property DragMode ;
	__property Color ;
	__property Constraints ;
	__property ParentColor ;
	__property ParentShowHint ;
	__property PopupMenu ;
	__property ShowHint ;
	__property Visible ;
	__property OnClick ;
	__property OnContextPopup ;
	__property OnDblClick ;
	__property OnDragDrop ;
	__property OnDragOver ;
	__property OnEndDock ;
	__property OnEndDrag ;
	__property OnMouseDown ;
	__property OnMouseMove ;
	__property OnMouseUp ;
	__property OnStartDock ;
	__property OnStartDrag ;
};


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

}	/* namespace Vrdigit */
#if !defined(NO_IMPLICIT_NAMESPACE_USE)
using namespace Vrdigit;
#endif
#pragma option pop	// -w-
#pragma option pop	// -Vx

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

⌨️ 快捷键说明

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