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

📄 icomponent.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) 'iComponent.pas' rev: 6.00

#ifndef iComponentHPP
#define iComponentHPP

#pragma delphiheader begin
#pragma option push -w-
#pragma option push -Vx
#include <Menus.hpp>	// Pascal unit
#include <ActiveX.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 Icomponent
{
//-- type declarations -------------------------------------------------------
typedef void __fastcall (__closure *TiPaintEvent)(System::TObject* Sender, Graphics::TCanvas* Canvas);

class DELPHICLASS TiComponent;
class PASCALIMPLEMENTATION TiComponent : public Controls::TCustomControl 
{
	typedef Controls::TCustomControl inherited;
	
private:
	TiPaintEvent FOnPaint;
	double FCreationTime;
	bool FUpdateActive;
	int FUpdateFrameRate;
	double FLastUpdate;
	bool FNeedsInvalidateChange;
	bool FNeedsBackGroundChange;
	Graphics::TBitmap* FBackGroundBitmap;
	Graphics::TBitmap* FOffScreenBitmap;
	Graphics::TBitmap* FBackGroundPicture;
	Graphics::TColor FBackGroundColor;
	bool FBackGroundChanged;
	Itypes::TiBevelStyle FBorderStyle;
	int FOffsetY;
	int FOffsetX;
	bool FHasFocus;
	Itypes::TChangePropertyEvent FOnChangeProtected;
	Itypes::TRequestEditEvent FOnRequestEdit;
	bool FAutoFrameRate;
	bool FLoading;
	Itypes::TGetDesigningEvent FOnGetDesigning;
	bool FActiveXDesigning;
	bool FCachedDrawing;
	bool FOptionSaveAllProperties;
	bool FUserGenerated;
	bool FErrorActive;
	AnsiString FErrorText;
	Graphics::TColor FErrorBackGroundColor;
	Graphics::TFont* FErrorFont;
	
protected:
	Itypes::TPointDouble __fastcall GetCenterPointDouble(Graphics::TCanvas* Canvas);
	bool __fastcall GetLoading(void);
	int __fastcall GetBorderMargin(void);
	virtual Types::TPoint __fastcall GetCenterPoint(Graphics::TCanvas* Canvas);
	void __fastcall SetOffsetX(const int Value);
	void __fastcall SetOffsetY(const int Value);
	void __fastcall SetBackGroundPicture(const Graphics::TBitmap* Value);
	void __fastcall SetUpdateFrameRate(const int Value);
	void __fastcall SetAutoFrameRate(const bool Value);
	virtual void __fastcall SetCachedDrawing(const bool Value);
	virtual void __fastcall SetBorderStyle(const Itypes::TiBevelStyle Value);
	virtual void __fastcall SetBackGroundColor(const Graphics::TColor Value);
	void __fastcall SetErrorActive(const bool Value);
	void __fastcall SetErrorText(const AnsiString Value);
	void __fastcall SetErrorBackGroundColor(const Graphics::TColor Value);
	void __fastcall SetErrorFont(const Graphics::TFont* Value);
	virtual void __fastcall DrawBackGround(Graphics::TCanvas* Canvas, Graphics::TColor BackGroundColor);
	virtual void __fastcall DrawBorder(Graphics::TCanvas* Canvas);
	void __fastcall CreateBackGroundBitmap(void);
	void __fastcall CreateOffScreenBitmap(void);
	void __fastcall ShowOffScreenBitmap(Graphics::TBitmap* Bitmap);
	void __fastcall ShowBackGround(void);
	void __fastcall BackGroundChange(void);
	void __fastcall InvalidateChange(void);
	void __fastcall InvalidateNow(void);
	void __fastcall BackGroundChangeEvent(System::TObject* Sender);
	void __fastcall InvalidateChangeEvent(System::TObject* Sender);
	void __fastcall InvalidateNowEvent(System::TObject* Sender);
	bool __fastcall GetIsDesigning(void);
	Graphics::TBitmap* __fastcall GetBackGroundBitmap(void);
	void __fastcall ResetBackGroundChange(void);
	void __fastcall TransferBackGround(Graphics::TCanvas* Canvas);
	void __fastcall DoRepaintType(Itypes::TiRepaintType Value);
	__property Graphics::TBitmap* BackGroundBitmap = {read=GetBackGroundBitmap};
	__property bool BackGroundChanged = {read=FBackGroundChanged, nodefault};
	void __fastcall SetLoading(bool Value);
	Typinfo::TTypeKind __fastcall GetPropertyType(Classes::TPersistent* Instance, AnsiString Path, AnsiString PropertyName);
	void __fastcall PropertyVarType(AnsiString PropertyName, Typinfo::TTypeKind &AVarType);
	virtual bool __fastcall GetTimerRunning(void) = 0 ;
	virtual void __fastcall TimerStart(int InitialDelay, int Interval) = 0 ;
	virtual void __fastcall TimerStop(void) = 0 ;
	DYNAMIC void __fastcall MouseDown(Controls::TMouseButton Button, Classes::TShiftState Shift, int X, int Y);
	DYNAMIC void __fastcall MouseUp(Controls::TMouseButton Button, Classes::TShiftState Shift, int X, int Y);
	DYNAMIC void __fastcall MouseMove(Classes::TShiftState Shift, int X, int Y);
	DYNAMIC void __fastcall DblClick(void);
	DYNAMIC void __fastcall KeyDown(Word &Key, Classes::TShiftState Shift);
	DYNAMIC void __fastcall KeyUp(Word &Key, Classes::TShiftState Shift);
	DYNAMIC void __fastcall KeyPress(char &Key);
	virtual bool __fastcall OPCOutputData(AnsiString PropertyName, const OleVariant &Value);
	virtual void __fastcall iDoSetFocus(void);
	virtual void __fastcall iDoKillFocus(void);
	virtual void __fastcall iWantSpecialKey(Word &CharCode, int &Result);
	virtual void __fastcall iKeyUp(Word &CharCode, Classes::TShiftState Shift);
	virtual void __fastcall iKeyDown(Word &CharCode, Classes::TShiftState Shift);
	virtual void __fastcall iKeyPress(char &Key);
	virtual void __fastcall iMouseDown(Controls::TMouseButton Button, Classes::TShiftState Shift, int X, int Y);
	virtual void __fastcall iMouseUp(Controls::TMouseButton Button, Classes::TShiftState Shift, int X, int Y);
	virtual void __fastcall iMouseMove(Classes::TShiftState Shift, int X, int Y);
	virtual void __fastcall iDoubleClick(void);
	virtual bool __fastcall iMouseWheel(int WheelDelta, Classes::TShiftState Shift, const Types::TPoint &MousePos);
	Types::TPoint __fastcall GetXYRadPoint(double AngleDegrees, double Radius, const Types::TPoint &Offset);
	virtual void __fastcall Paint(void);
	void __fastcall PaintToDC(void);
	void __fastcall PaintToMetaFile(void);
	void __fastcall PaintEvalExpired(void);
	virtual void __fastcall iPaintTo(Graphics::TCanvas* Canvas) = 0 ;
	void __fastcall CreateBackGroundPicture(void);
	__property Graphics::TColor BackGroundColor = {read=FBackGroundColor, write=SetBackGroundColor, default=-2147483633};
	__property Graphics::TBitmap* BackGroundPicture = {read=FBackGroundPicture, write=SetBackGroundPicture};
	__property int OffsetX = {read=FOffsetX, write=SetOffsetX, default=0};
	__property int OffsetY = {read=FOffsetY, write=SetOffsetY, default=0};
	__property bool CachedDrawing = {read=FCachedDrawing, write=SetCachedDrawing, default=1};
	void __fastcall SetBooleanProperty(bool Value, bool &FVariable, Itypes::TiRepaintType RepaintType);
	void __fastcall SetIntegerProperty(int Value, int &FVariable, Itypes::TiRepaintType RepaintType);
	void __fastcall SetDoubleProperty(double Value, double &FVariable, Itypes::TiRepaintType RepaintType);
	void __fastcall SetStringProperty(AnsiString Value, AnsiString &FVariable, Itypes::TiRepaintType RepaintType);
	void __fastcall SetColorProperty(Graphics::TColor Value, Graphics::TColor &FVariable, Itypes::TiRepaintType RepaintType);
	void __fastcall SetWideStringProperty(WideString Value, WideString &FVariable, Itypes::TiRepaintType RepaintType);
	void __fastcall DoRepaint(void);
	void __fastcall DoFrameRate(void);
	void __fastcall DoIsDesigning(System::TObject* Sender, bool &Designing);
	__property bool HasFocus = {read=FHasFocus, nodefault};
	__property bool Loading = {read=GetLoading, nodefault};
	__property bool UpdateActive = {read=FUpdateActive, nodefault};
	__property Itypes::TRequestEditEvent OnRequestEditProtected = {read=FOnRequestEdit, write=FOnRequestEdit};
	__property Itypes::TChangePropertyEvent OnChangeProtected = {read=FOnChangeProtected, write=FOnChangeProtected};
	__property TiPaintEvent OnPaint = {read=FOnPaint, write=FOnPaint};
	__property int BorderMargin = {read=GetBorderMargin, nodefault};
	__property bool IsDesigning = {read=GetIsDesigning, nodefault};
	__property Itypes::TGetDesigningEvent OnGetDesigning = {read=FOnGetDesigning, write=FOnGetDesigning};
	__property bool ActiveXDesigning = {read=FActiveXDesigning, write=FActiveXDesigning, nodefault};
	__property bool UserGenerated = {read=FUserGenerated, write=FUserGenerated, nodefault};
	__property bool ErrorActive = {read=FErrorActive, write=SetErrorActive, nodefault};
	__property AnsiString ErrorText = {read=FErrorText, write=SetErrorText};
	__property Graphics::TFont* ErrorFont = {read=FErrorFont, write=SetErrorFont};
	__property Graphics::TColor ErrorBackGroundColor = {read=FErrorBackGroundColor, write=SetErrorBackGroundColor, nodefault};
	
public:
	__property Itypes::TiBevelStyle BorderStyle = {read=FBorderStyle, write=SetBorderStyle, default=0};
	__fastcall virtual TiComponent(Classes::TComponent* AOwner);
	__fastcall virtual ~TiComponent(void);
	virtual void __fastcall RepaintAll(void);
	virtual void __fastcall BeginUpdate(void);
	virtual void __fastcall EndUpdate(void);
	virtual void __fastcall Lock(void) = 0 ;
	virtual void __fastcall Unlock(void) = 0 ;
	void __fastcall SaveImageToBitmap(AnsiString FileName);
	virtual void __fastcall SavePropertiesToFile(AnsiString FileName);
	virtual void __fastcall LoadPropertiesFromFile(AnsiString FileName);
	
__published:
	__property Visible  = {default=1};
	__property Enabled  = {default=1};
	__property ShowHint ;
	__property PopupMenu ;
	__property OnClick ;
	__property OnDblClick ;
	__property OnDragDrop ;
	__property OnDragOver ;
	__property OnStartDrag ;
	__property OnEndDrag ;
	__property OnMouseDown ;
	__property OnMouseMove ;
	__property OnMouseUp ;
	__property OnKeyDown ;
	__property OnKeyPress ;
	__property OnKeyUp ;
	__property OnEnter ;
	__property OnExit ;
	__property bool OptionSaveAllProperties = {read=FOptionSaveAllProperties, write=FOptionSaveAllProperties, default=0};
	__property bool AutoFrameRate = {read=FAutoFrameRate, write=SetAutoFrameRate, default=0};
	__property int UpdateFrameRate = {read=FUpdateFrameRate, write=SetUpdateFrameRate, default=60};
public:
	#pragma option push -w-inl
	/* TWinControl.CreateParented */ inline __fastcall TiComponent(HWND ParentWindow) : Controls::TCustomControl(ParentWindow) { }
	#pragma option pop
	
};


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

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

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

⌨️ 快捷键说明

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