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

📄 isevensegmentcharacter.hpp

📁 Iocomp Ultra Pack v3.0.2 Sources.For.Delphi 数据显示编程插件,可用于工业控制
💻 HPP
字号:
// Borland C++ Builder
// Copyright (c) 1995, 2002 by Borland Software Corporation
// All rights reserved

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

#ifndef iSevenSegmentCharacterHPP
#define iSevenSegmentCharacterHPP

#pragma delphiheader begin
#pragma option push -w-
#pragma option push -Vx
#include <iComponent.hpp>	// Pascal unit
#include <iVCLComponent.hpp>	// Pascal unit
#include <iCustomComponent.hpp>	// Pascal unit
#include <iMath.hpp>	// Pascal unit
#include <iGPFunctions.hpp>	// Pascal unit
#include <iTypes.hpp>	// Pascal unit
#include <ExtCtrls.hpp>	// Pascal unit
#include <StdCtrls.hpp>	// Pascal unit
#include <ComCtrls.hpp>	// Pascal unit
#include <Controls.hpp>	// Pascal unit
#include <Variants.hpp>	// Pascal unit
#include <Classes.hpp>	// Pascal unit
#include <Messages.hpp>	// Pascal unit
#include <Types.hpp>	// Pascal unit
#include <Clipbrd.hpp>	// Pascal unit
#include <Dialogs.hpp>	// Pascal unit
#include <Forms.hpp>	// Pascal unit
#include <Graphics.hpp>	// Pascal unit
#include <TypInfo.hpp>	// Pascal unit
#include <SysUtils.hpp>	// Pascal unit
#include <Windows.hpp>	// Pascal unit
#include <SysInit.hpp>	// Pascal unit
#include <System.hpp>	// Pascal unit

//-- user supplied -----------------------------------------------------------

namespace Isevensegmentcharacter
{
//-- type declarations -------------------------------------------------------
#pragma option push -b-
enum TSegment { segA, segB, segC, segD, segE, segF, segG };
#pragma option pop

#pragma option push -b-
enum TSevenSegmentCharacter { ssc0, ssc1, ssc2, ssc3, ssc4, ssc5, ssc6, ssc7, ssc8, ssc9, sscA, sscB, sscC, sscD, sscE, sscF, sscPeriod, sscColon, sscPlus, sscMinus, sscBlank, sscLine, sscUpArrow, sscDownArrow, sscSemiColon, sscComma };
#pragma option pop

typedef Set<TSegment, segA, segG>  TSegments;

class DELPHICLASS TiSevenSegmentCharacter;
class PASCALIMPLEMENTATION TiSevenSegmentCharacter : public Icustomcomponent::TiCustomComponent 
{
	typedef Icustomcomponent::TiCustomComponent inherited;
	
private:
	bool FAutoSize;
	int FSegmentMargin;
	bool FShowOffSegments;
	int FSegmentSeperation;
	int FSegmentSize;
	Graphics::TColor FSegmentColor;
	TSevenSegmentCharacter FValue;
	bool FPowerOff;
	bool FSegCOn;
	bool FSegDOn;
	bool FSegGOn;
	bool FSegAOn;
	bool FSegFOn;
	bool FSegBOn;
	bool FSegEOn;
	bool FUseSegmentBits;
	bool FAutoSegmentOffColor;
	Graphics::TColor FSegmentOffColor;
	Classes::TNotifyEvent FOnAutoSize;
	char __fastcall GetCharacter(void);
	void __fastcall DoAutoSize(void);
	void __fastcall iSetAutoSize(const bool Value);
	void __fastcall SetCharacter(const char AValue);
	void __fastcall SetSegmentMargin(const int Value);
	void __fastcall SetSegmentSeperation(const int Value);
	void __fastcall SetSegmentSize(const int Value);
	void __fastcall SetSegmentColor(const Graphics::TColor Value);
	void __fastcall SetShowOffSegments(const bool Value);
	void __fastcall SetValue(const TSevenSegmentCharacter Value);
	void __fastcall SetPowerOff(const bool Value);
	void __fastcall SetSegAOn(const bool Value);
	void __fastcall SetSegBOn(const bool Value);
	void __fastcall SetSegCOn(const bool Value);
	void __fastcall SetSegDOn(const bool Value);
	void __fastcall SetSegEOn(const bool Value);
	void __fastcall SetSegFOn(const bool Value);
	void __fastcall SetSegGOn(const bool Value);
	void __fastcall SetUseSegmentBits(const bool Value);
	void __fastcall SetAutoSegmentOffColor(const bool Value);
	void __fastcall SetSegmentOffColor(const Graphics::TColor Value);
	Byte __fastcall GetSegmentBits(void);
	
protected:
	void __fastcall DrawSegments(Graphics::TCanvas* Canvas, Graphics::TColor OnColor, Graphics::TColor OffColor, const Types::TPoint &Offset, TSegments Segments, int AWidth, int AHeight);
	void __fastcall DrawSegmentA(Graphics::TCanvas* Canvas, const Types::TPoint &Offset, Graphics::TColor AColor, int AWidth, int AHeight);
	void __fastcall DrawSegmentB(Graphics::TCanvas* Canvas, const Types::TPoint &Offset, Graphics::TColor AColor, int AWidth, int AHeight);
	void __fastcall DrawSegmentC(Graphics::TCanvas* Canvas, const Types::TPoint &Offset, Graphics::TColor AColor, int AWidth, int AHeight);
	void __fastcall DrawSegmentD(Graphics::TCanvas* Canvas, const Types::TPoint &Offset, Graphics::TColor AColor, int AWidth, int AHeight);
	void __fastcall DrawSegmentE(Graphics::TCanvas* Canvas, const Types::TPoint &Offset, Graphics::TColor AColor, int AWidth, int AHeight);
	void __fastcall DrawSegmentF(Graphics::TCanvas* Canvas, const Types::TPoint &Offset, Graphics::TColor AColor, int AWidth, int AHeight);
	void __fastcall DrawSegmentG(Graphics::TCanvas* Canvas, const Types::TPoint &Offset, Graphics::TColor AColor, int AWidth, int AHeight);
	void __fastcall DrawSegmentPeriod(Graphics::TCanvas* Canvas, const Types::TPoint &Offset, Graphics::TColor AColor, int AWidth, int AHeight);
	void __fastcall DrawSegmentColon(Graphics::TCanvas* Canvas, const Types::TPoint &Offset, Graphics::TColor AColor, int AWidth, int AHeight);
	void __fastcall DrawSegmentSemiColon(Graphics::TCanvas* Canvas, const Types::TPoint &Offset, Graphics::TColor AColor, int AWidth, int AHeight);
	void __fastcall DrawSegmentComma(Graphics::TCanvas* Canvas, const Types::TPoint &Offset, Graphics::TColor AColor, int AWidth, int AHeight);
	void __fastcall DrawSegmentPlus(Graphics::TCanvas* Canvas, const Types::TPoint &Offset, Graphics::TColor AColor, int AWidth, int AHeight);
	void __fastcall DrawSegmentMinus(Graphics::TCanvas* Canvas, const Types::TPoint &Offset, Graphics::TColor AColor, int AWidth, int AHeight);
	void __fastcall DrawSegmentLine(Graphics::TCanvas* Canvas, const Types::TPoint &Offset, Graphics::TColor AColor, int AWidth, int AHeight);
	void __fastcall DrawSegmentUpArrow(Graphics::TCanvas* Canvas, const Types::TPoint &Offset, Graphics::TColor AColor, int AWidth, int AHeight);
	void __fastcall DrawSegmentDownArrow(Graphics::TCanvas* Canvas, const Types::TPoint &Offset, Graphics::TColor AColor, int AWidth, int AHeight);
	virtual void __fastcall iPaintTo(Graphics::TCanvas* Canvas);
	void __fastcall DoChange(void);
	
public:
	__fastcall virtual TiSevenSegmentCharacter(Classes::TComponent* AOwner);
	void __fastcall Draw(Graphics::TCanvas* Canvas, const Types::TPoint &OffsetPoint, int AWidth, int AHeight, TSevenSegmentCharacter AValue);
	int __fastcall GetCharacterWidth(void);
	int __fastcall GetCharacterHeight(void);
	TSevenSegmentCharacter __fastcall ConvertCharacterToValue(char AChar);
	void __fastcall SetSegmentBits(Byte Value);
	__property Classes::TNotifyEvent OnAutoSize = {read=FOnAutoSize, write=FOnAutoSize};
	
__published:
	__property bool AutoSize = {read=FAutoSize, write=iSetAutoSize, default=1};
	__property char Character = {read=GetCharacter, write=SetCharacter, nodefault};
	__property bool PowerOff = {read=FPowerOff, write=SetPowerOff, default=0};
	__property Graphics::TColor SegmentColor = {read=FSegmentColor, write=SetSegmentColor, default=65280};
	__property int SegmentMargin = {read=FSegmentMargin, write=SetSegmentMargin, default=2};
	__property int SegmentSeperation = {read=FSegmentSeperation, write=SetSegmentSeperation, default=1};
	__property int SegmentSize = {read=FSegmentSize, write=SetSegmentSize, default=1};
	__property bool ShowOffSegments = {read=FShowOffSegments, write=SetShowOffSegments, default=1};
	__property Byte SegmentBits = {read=GetSegmentBits, write=SetSegmentBits, default=0};
	__property bool UseSegmentBits = {read=FUseSegmentBits, write=SetUseSegmentBits, default=0};
	__property bool SegAOn = {read=FSegAOn, write=SetSegAOn, default=0};
	__property bool SegBOn = {read=FSegBOn, write=SetSegBOn, default=0};
	__property bool SegCOn = {read=FSegCOn, write=SetSegCOn, default=0};
	__property bool SegDOn = {read=FSegDOn, write=SetSegDOn, default=0};
	__property bool SegEOn = {read=FSegEOn, write=SetSegEOn, default=0};
	__property bool SegFOn = {read=FSegFOn, write=SetSegFOn, default=0};
	__property bool SegGOn = {read=FSegGOn, write=SetSegGOn, default=0};
	__property TSevenSegmentCharacter Value = {read=FValue, write=SetValue, nodefault};
	__property Graphics::TColor SegmentOffColor = {read=FSegmentOffColor, write=SetSegmentOffColor, default=32768};
	__property bool AutoSegmentOffColor = {read=FAutoSegmentOffColor, write=SetAutoSegmentOffColor, default=1};
	__property BackGroundColor  = {default=0};
	__property Transparent  = {default=0};
public:
	#pragma option push -w-inl
	/* TiVCLComponent.Destroy */ inline __fastcall virtual ~TiSevenSegmentCharacter(void) { }
	#pragma option pop
	
public:
	#pragma option push -w-inl
	/* TWinControl.CreateParented */ inline __fastcall TiSevenSegmentCharacter(HWND ParentWindow) : Icustomcomponent::TiCustomComponent(ParentWindow) { }
	#pragma option pop
	
};


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

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

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

⌨️ 快捷键说明

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