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

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

#ifndef iScaleComponentHPP
#define iScaleComponentHPP

#pragma delphiheader begin
#pragma option push -w-
#pragma option push -Vx
#include <iComponent.hpp>	// Pascal unit
#include <iVCLComponent.hpp>	// Pascal unit
#include <iPositionComponent.hpp>	// Pascal unit
#include <iScaleObject.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 Iscalecomponent
{
//-- type declarations -------------------------------------------------------
class DELPHICLASS TiScaleComponent;
class PASCALIMPLEMENTATION TiScaleComponent : public Ipositioncomponent::TiPositionComponent 
{
	typedef Ipositioncomponent::TiPositionComponent inherited;
	
private:
	Iscaleobject::TiScaleObject* FScaleObject;
	bool FAutoScaleEnabled;
	int FAutoScaleDesiredTicks;
	int FAutoScaleMaxTicks;
	Itypes::TiAutoScaleStyle FAutoScaleStyle;
	void __fastcall SetShowTickLabels(const bool Value);
	void __fastcall SetShowTicksMajor(const bool Value);
	void __fastcall SetShowTicksMinor(const bool Value);
	void __fastcall SetTickLabelFont(const Graphics::TFont* Value);
	void __fastcall SetTickLabelMargin(const int Value);
	void __fastcall SetTickLabelPrecision(const int Value);
	void __fastcall SetTickMajorColor(const Graphics::TColor Value);
	void __fastcall SetTickMajorCount(const int Value);
	void __fastcall SetTickMajorLength(const int Value);
	void __fastcall SetTickMargin(const int Value);
	void __fastcall SetTickMinorAlignment(const Itypes::TiTickMinorAlignment Value);
	void __fastcall SetTickMinorColor(const Graphics::TColor Value);
	void __fastcall SetTickMinorCount(const int Value);
	void __fastcall SetTickMinorLength(const int Value);
	void __fastcall SetTickMajorStyle(const Itypes::TiBevelStyle Value);
	void __fastcall SetTickMinorStyle(const Itypes::TiBevelStyle Value);
	void __fastcall SetShowTicksMajorFirstLast(const bool Value);
	void __fastcall SetPrecisionStyle(const Itypes::TiPrecisionStyle Value);
	void __fastcall SetAutoScaleDesiredTicks(const int Value);
	void __fastcall SetAutoScaleEnabled(const bool Value);
	void __fastcall SetAutoScaleMaxTicks(const int Value);
	void __fastcall SetAutoScaleStyle(const Itypes::TiAutoScaleStyle Value);
	bool __fastcall GetShowTickLabels(void);
	bool __fastcall GetShowTicksMajor(void);
	bool __fastcall GetShowTicksMinor(void);
	Graphics::TFont* __fastcall GetTickLabelFont(void);
	int __fastcall GetTickLabelMargin(void);
	int __fastcall GetTickLabelPrecision(void);
	Graphics::TColor __fastcall GetTickMajorColor(void);
	int __fastcall GetTickMajorCount(void);
	int __fastcall GetTickMajorLength(void);
	int __fastcall GetTickMargin(void);
	Itypes::TiTickMinorAlignment __fastcall GetTickMinorAlignment(void);
	Graphics::TColor __fastcall GetTickMinorColor(void);
	int __fastcall GetTickMinorCount(void);
	int __fastcall GetTickMinorLength(void);
	Itypes::TiBevelStyle __fastcall GetTickMajorStyle(void);
	Itypes::TiBevelStyle __fastcall GetTickMinorStyle(void);
	bool __fastcall GetShowTicksMajorFirstLast(void);
	Itypes::TiPrecisionStyle __fastcall GetPrecisionStyle(void);
	Itypes::TOnCustomizeTickLabel __fastcall GetOnCustomizeTickLabel();
	void __fastcall SetOnCustomizeTickLabel(const Itypes::TOnCustomizeTickLabel Value);
	
protected:
	double FAutoScaleMaxTick;
	double FAutoScaleMinTick;
	virtual void __fastcall SetPositionMin(const double Value);
	virtual void __fastcall SetPositionMax(const double Value);
	void __fastcall DoAutoScale(double DesiredMin, double DesiredMax);
	virtual int __fastcall GetDecimalPoints(void);
	void __fastcall ScaleChange(System::TObject* Sender);
	__property Iscaleobject::TiScaleObject* ScaleObject = {read=FScaleObject};
	__property bool ShowTicksMajorFirstLast = {read=GetShowTicksMajorFirstLast, write=SetShowTicksMajorFirstLast, default=1};
	__property Itypes::TiBevelStyle TickMajorStyle = {read=GetTickMajorStyle, write=SetTickMajorStyle, default=0};
	__property Itypes::TiBevelStyle TickMinorStyle = {read=GetTickMinorStyle, write=SetTickMinorStyle, default=0};
	__property bool ShowTicksMajor = {read=GetShowTicksMajor, write=SetShowTicksMajor, default=1};
	__property bool ShowTicksMinor = {read=GetShowTicksMinor, write=SetShowTicksMinor, default=1};
	__property bool ShowTickLabels = {read=GetShowTickLabels, write=SetShowTickLabels, default=1};
	__property int TickMajorCount = {read=GetTickMajorCount, write=SetTickMajorCount, default=5};
	__property Graphics::TColor TickMajorColor = {read=GetTickMajorColor, write=SetTickMajorColor, default=0};
	__property int TickMajorLength = {read=GetTickMajorLength, write=SetTickMajorLength, default=7};
	__property Itypes::TiTickMinorAlignment TickMinorAlignment = {read=GetTickMinorAlignment, write=SetTickMinorAlignment, default=0};
	__property int TickMinorCount = {read=GetTickMinorCount, write=SetTickMinorCount, default=4};
	__property Graphics::TColor TickMinorColor = {read=GetTickMinorColor, write=SetTickMinorColor, default=0};
	__property int TickMinorLength = {read=GetTickMinorLength, write=SetTickMinorLength, default=3};
	__property int TickMargin = {read=GetTickMargin, write=SetTickMargin, default=5};
	__property int TickLabelMargin = {read=GetTickLabelMargin, write=SetTickLabelMargin, default=5};
	__property Graphics::TFont* TickLabelFont = {read=GetTickLabelFont, write=SetTickLabelFont};
	__property int TickLabelPrecision = {read=GetTickLabelPrecision, write=SetTickLabelPrecision, default=0};
	__property Itypes::TiPrecisionStyle PrecisionStyle = {read=GetPrecisionStyle, write=SetPrecisionStyle, default=1};
	__property bool AutoScaleEnabled = {read=FAutoScaleEnabled, write=SetAutoScaleEnabled, default=0};
	__property int AutoScaleDesiredTicks = {read=FAutoScaleDesiredTicks, write=SetAutoScaleDesiredTicks, default=5};
	__property int AutoScaleMaxTicks = {read=FAutoScaleMaxTicks, write=SetAutoScaleMaxTicks, default=6};
	__property Itypes::TiAutoScaleStyle AutoScaleStyle = {read=FAutoScaleStyle, write=SetAutoScaleStyle, default=0};
	__property Itypes::TOnCustomizeTickLabel OnCustomizeTickLabel = {read=GetOnCustomizeTickLabel, write=SetOnCustomizeTickLabel};
	
public:
	__fastcall virtual TiScaleComponent(Classes::TComponent* AOwner);
	__fastcall virtual ~TiScaleComponent(void);
	virtual void __fastcall Loaded(void);
public:
	#pragma option push -w-inl
	/* TWinControl.CreateParented */ inline __fastcall TiScaleComponent(HWND ParentWindow) : Ipositioncomponent::TiPositionComponent(ParentWindow) { }
	#pragma option pop
	
};


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

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

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

⌨️ 快捷键说明

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