仪表控制

Tool Palette's中的Instrument Controls选项卡包含用于设计 Altium Designer自定义仪表面板图形用户界面的组件(控件)。这些控件专门用于定制仪表。

虽然仪表控件可在 Altium Designer 的脚本环境中使用,但请注意,从 18.0 版开始,Altium Designer 不支持可使用自定义仪表监测和控制信号的 FPGA 设计。
在 Altium NEXUS 的脚本环境中可使用仪表控件,但请注意 Altium NEXUS 不支持可通过自定义仪表监测和控制信号的 FPGA 设计。

► 请参阅自定义仪表图形用户界面 - 可用仪表控件,了解各仪表控件的功能说明。

要查看放置在脚本窗体上的仪表控制组件的相关属性和事件,请使用 Properties Events 选项卡(View » Panels » Object Inspector).

要查找仪表控件的特定方法(或属性),请使用代码完成功能(请参阅脚本编辑器工具)。例如,输入 TInstrumentCheckBox.get代码完成 "窗口将显示一个经过适当筛选的方法和属性列表。 TInstrumentCheckBox 组件。使用 Ctrl+Space手动启动代码完成窗口。

使用代码完成 (Ctrl+Space) 功能查看组件的可用方法或属性。
使用代码完成 (Ctrl+Space) 功能查看组件的可用方法或属性。

继承

大多数仪表控制类的方法(以及属性和事件)都继承自 Delphi VCL TGraphicControlTCustomControl基类。因此,此处涉及的仪表控制方法是对这些基类之一的补充,如每个条目参考中所述。

例如,仪表控件的降序继承如下 TInstrumentCheckBox控件的继承顺序如下:

继承路径 方法
TGraphicControl 参见相应的 Delphi 参考资料
TCustomInstrumentCheckBox 请参见 TXPCheckBox条目。
TInstrumentCheckBox 请参见 TXPCheckBox条目。

组件方法

Altium Instrument Control 组件基于Embarcadero Visual Component Library (VCL) 的核心类。每个 Instrument Control 都继承了其 VCL 源的方法、属性和事件,大多数还提供了额外的自定义方法。例如 TInstrumentCheckBox组件和标准 TCheckBox组件提供 Click方法,而 TInstrumentCheckBox组件还提供 Changed方法。

使用以下列表可浏览仪表控制类别中每个组件可用方法的相关信息:

TSignalLinkManager 仪表信号链接管理器。
TInstrumentBackgroundPanel(仪表背景面板 仪表面板背景颜色。
TInstrumentBackground 仪表背景颜色。
TInstrumentButton 仪表按钮。
TInstrumentCaption 仪表面板标题。
TInstrumentCheckBox 复选框 仪表复选框。
TInstrumentEdit 仪表编辑框。
TInstrumentGauge 仪表 模拟式仪表仪表/仪表。
TInstrumentGlyphButton 图形按钮 仪表速度按钮图形图像。
TInstrumentGraph 仪表图形显示。
TInstrumentKnob 旋钮 仪表旋转控制旋钮。
TInstrumentLabel 仪表面板标签。
TInstrumentLEDDigits 数字显示 7 段数字 LED 显示器。
TInstrumentLEDsPanel 分组 LED 指示灯行。
TInstrumentMultiGraph (多图表 多轨迹图形显示。
TInstrumentNumericPanel 数字面板 仪表数字读出。
TInstrumentPanel 仪表面板区域。
TInstrumentProgressBar 进度条 LED 条形信号/进度指示器
TInstrumentRadioButton 无线电按钮 仪表单选按钮选择器。
TInstrumentRadioGroup 无线电组 用于单选按钮的仪表组控件。
TInstrumentScrollbar 仪表滚动条控件。
TInstrumentShape 仪表面板的几何形状。
TInstrumentSilkScreen 仪表面板丝网覆盖。
TInstrumentTerminal 仪表字符显示终端窗口。
TInstrumentTrackBar 仪表滑动条控件。

TSignalLinkManager

TSignalLinkManager 从基类继承其方法。 TComponent类中继承。该 TSignalLinkManager类提供了以下附加方法:

TSignalLinkManager:
Procedure DoPoll;
Procedure ClearSignalLinks;
Procedure UpdateSignals(AInput, AOutput : LongBool);

TInstrumentBackgroundPanel

TInstrumentBackgroundPanel 的方法继承自基类。 TCustomControl类的方法。方法 TXPCustomControl, TXPCustomExtPanel TCustomInstrumentBackgroundPanel类提供了以下附加方法:

TXPCustomControl:
Procedure UpdateSmoothDraw;
Function  GetModified : Boolean;
Procedure ClearModified;

TXPCustomExtPanel:
Function  GetDrawingMode : TXPDrawingMode;
Function  UseRegion      : Boolean;
Function  DoCreateRegion : HRGN;
Procedure BeginUpdate;
Procedure EndUpdate;

TCustomInstrumentBackgroundPanel:
Procedure UpdateBackgroundImage;
Procedure UpdateChildControls;

TInstrumentBackground

TInstrumentBackground 类的方法。 TGraphicControl类的方法。和 TCustomGraphicInstrumentWithBackgroundTCustomGraphicInstrumentWithInterior类提供了以下附加方法:

TCustomGraphicInstrumentWithBackground:
Procedure BackgroundOptionsChanged(AChanges : TInstrumentBackgroundOptions);
Procedure MarginChanged;

TCustomGraphicInstrumentWithInterior:
Procedure BackgroundOptionsChanged(AChanges : TInstrumentBackgroundOptions);
Procedure MarginChanged;
Procedure DoPaint(ACanvas : TCanvas; X : Integer = 0; Y : Integer = 0);
Procedure PaintInterior(ACanvas : TCanvas; ARect : TRect);
Function  UseCreamBackground : Boolean;

TInstrumentButton

TInstrumentButton 类的方法。 TCustomControl类的方法。类 TXPCustomControl, TXPCustomTransparentControl, TXPBaseCustomSpeedButton,TXPCustomSpeedButton TCustomInstrumentButton类提供以下附加方法:

TXPCustomControl:
Procedure UpdateSmoothDraw;
Function  GetModified : Boolean;
Procedure ClearModified;

TXPCustomTransparentControl:
Procedure TransparentChanged;

TXPBaseCustomSpeedButton:
Function  GetShiftContentIfPressed : Boolean;
Procedure VCLClick;
Procedure PaintStandard    (ARect,ARectDrop : TRect; APushed : Boolean);
Procedure PaintFading      (Const ARectDrop : TRect; APushed : Boolean);
Procedure DrawImage        (Canvas : TCanvas; Const ARect : TRect; AEnabled : Boolean);
Procedure DrawFadingImage  (Canvas : TCanvas; Const ARect : TRect);
Procedure CopyToImage      (AlphaImage : TAlphaBitmap);
Procedure RedrawImage      (Const ARect : TRect);
Procedure RedrawCaption    (Const ARect : TRect; Const ACaption : String; AFontColor : TColor);
Procedure RedrawInside     (ARect : TRect; AFontColor : TColor; DoFontFading : Boolean);
Procedure CalculatePositions(Const ARect : TRect; Out TotalSize : TPoint; Out GlyphPos : TPoint; Out TextBounds : TRect);
Function  NeedPaintDropdown    : Boolean;
Function  PushOnClick          : Boolean;
Function  GetDrawCaptionFlags  : TXPDrawCaptionFlags;
Function  GetEllipsisPosition  : TEllipsisPosition;
Function  GetFadingEnabled     : Boolean;
Function  GetGlyphSize(Out GlyphSize : TSize) : Boolean;
Procedure UpdateExclusive;
Procedure AppearanceChanged(AChange : TAppearanceChange);
Procedure KindChanged;

TXPCustomSpeedButton:
Procedure GlyphChanged   (Sender : TObject);
Procedure GetGlyphInfo   (Out GlyphToDraw : TGraphic; Out NumGlyphsToDraw : Integer);
Function  GetImageState : Integer;

TCustomInstrumentButton:
Function  GetCaptionFontColor(ADown, AOn : Boolean) : TColor;
Function  GetDrawFlags       (ADown, AOn : Boolean) : TDrawInstrumentButtonFlags;
Function  GetDrawCaptionStyle(ADown, AOn : Boolean) : TDrawInstrumentButtonCaptionStyle;
Function  GetGlowIntensity : TGlowIntensity;
Procedure BackgroundChanged(Sender : TObject);
Procedure UpdateBitmaps;

TInstrumentCaption

TInstrumentCaption的方法继承自基 TCustomLabel类的方法。该 TCustomInstrumentLabel类提供了以下附加方法:

TCustomInstrumentLabel:
Procedure DoPaint(ACanvas : TCanvas; Const ARect : TRect);

TInstrumentCheckBox

TInstrumentCheckBox 类的方法继承自基类 TGraphicControl类。该 TCustomInstrumentCheckBox类提供了以下附加方法:

TCustomInstrumentCheckBox:
Procedure Changed;

TInstrumentEdit

TInstrumentEdit 从基类继承其方法。 TCustomControl类。和 TXPCustomControlTCustomXPEdit 类提供以下附加方法:

TXPCustomControl:
Procedure UpdateSmoothDraw;
Function GetModified : Boolean;
Procedure ClearModified;

TCustomXPEdit:
Function  CalcInternalHeight : Integer;
Procedure Change;
Procedure ChangeHotFont(IsHot : Boolean);
Procedure Clear;
Procedure ClearSelection;
Procedure ClearUndo;
Procedure CopyToClipboard;
Procedure CreateCaret;
Procedure CutToClipboard;
Procedure DestroyCaret;
Procedure DoEndCapture;
Procedure DrawInside(ARect : TRect; AColor, AFrameColor, AHLTextColor, AHLColor, AFontColor : TColor);
Function  GetAutoWidth : Integer;
Function  GetCursorPos : TPoint;
Function  GetEditDetails : TThemedElementDetails;
Function  GetEditorBounds : TRect;
Function  GetEditState : TThemedEdit;
Function  GetExcludeRect : TRect;
Procedure InsertString(Str : TXPString);
Procedure InternalSetCursor;
Procedure NumberFormatChanged;
Procedure SelectAll;
Procedure SetCaretPos(Value : Integer);
Procedure SetText       (Const Value : TCaption);
Procedure SetTransparent(Const Value : Boolean);
Procedure Undo;

TInstrumentGauge

TInstrumentGauge 类的方法。 TGraphicControl类的方法。基类 TCustomGraphicInstrumentWithBackground, TCustomGraphicInstrumentWithNoiseTCustomInstrumentGauge类提供了以下附加方法:

TCustomGraphicInstrumentWithBackground:
Procedure BackgroundOptionsChanged(AChanges : TInstrumentBackgroundOptions);
Procedure MarginChanged;

TCustomGraphicInstrumentWithNoise:
Procedure PaintOnPanel(APanel : TCustomInstrumentBackgroundPanel);
Procedure PaintControlBackground(ABitmap : TBitmap; X, Y : Integer);
Procedure PaintControlForeground(ABitmap : TBitmap; X, Y : Integer);

TCustomInstrumentGauge:
Procedure SetMax(Const Value : TProgressValue);
Procedure SetMin(Const Value : TProgressValue);
Procedure DoGetScaleLabel(AValue : TGaugeValue; Var ALabelString : String);

TInstrumentGlyphButton

TInstrumentGlyphButton 类的方法继承自基 TCustomControl类的方法。的方法。 TXPCustomControl, TXPCustomTransparentControl, TXPBaseCustomSpeedButton,TXPCustomSpeedButton, TCustomInstrumentButtonTCustomInstrumentGlyphButton类提供以下附加方法:

TXPCustomControl:
Procedure UpdateSmoothDraw;
Function  GetModified : Boolean;
Procedure ClearModified;

TXPCustomTransparentControl:
Procedure TransparentChanged;

TXPBaseCustomSpeedButton:
Function  GetShiftContentIfPressed : Boolean;
Procedure VCLClick;
Procedure PaintStandard    (ARect,ARectDrop : TRect; APushed : Boolean);
Procedure PaintFading      (Const ARectDrop : TRect; APushed : Boolean);
Procedure DrawImage        (Canvas : TCanvas; Const ARect : TRect; AEnabled : Boolean);
Procedure DrawFadingImage  (Canvas : TCanvas; Const ARect : TRect);
Procedure CopyToImage      (AlphaImage : TAlphaBitmap);
Procedure RedrawImage      (Const ARect : TRect);
Procedure RedrawCaption    (Const ARect : TRect; Const ACaption : String; AFontColor : TColor);
Procedure RedrawInside     (ARect : TRect; AFontColor : TColor; DoFontFading : Boolean);
Procedure CalculatePositions(Const ARect : TRect; Out TotalSize : TPoint; Out GlyphPos : TPoint; Out TextBounds : TRect);
Function  NeedPaintDropdown    : Boolean;
Function  PushOnClick          : Boolean;
Function  GetDrawCaptionFlags  : TXPDrawCaptionFlags;
Function  GetEllipsisPosition  : TEllipsisPosition;
Function  GetFadingEnabled     : Boolean;
Function  GetGlyphSize(Out GlyphSize : TSize) : Boolean;
Procedure UpdateExclusive;
Procedure AppearanceChanged(AChange : TAppearanceChange);
Procedure KindChanged;

TXPCustomSpeedButton:
Procedure GlyphChanged   (Sender : TObject);
Procedure GetGlyphInfo   (Out GlyphToDraw : TGraphic; Out NumGlyphsToDraw : Integer);
Function  GetImageState : Integer;

TCustomInstrumentButton:
Function  GetCaptionFontColor(ADown, AOn : Boolean) : TColor;
Function  GetDrawFlags       (ADown, AOn : Boolean) : TDrawInstrumentButtonFlags;
Function  GetDrawCaptionStyle(ADown, AOn : Boolean) : TDrawInstrumentButtonCaptionStyle;
Function  GetGlowIntensity : TGlowIntensity;
Procedure BackgroundChanged(Sender : TObject);
Procedure UpdateBitmaps;

TCustomInstrumentGlyphButton:
Procedure LEDChanged;

TInstrumentGraph

TCustomInstrumentGraph 的方法继承自基 TGraphicControl类的方法。的 TCustomGraphicInstrumentWithBackground, TCustomGraphicInstrumentWithInterior TCustomInstrumentGraph 类提供了以下附加方法:

TCustomGraphicInstrumentWithBackground:
Procedure BackgroundOptionsChanged(AChanges : TInstrumentBackgroundOptions);
Procedure MarginChanged;

TCustomGraphicInstrumentWithInterior:
Procedure BackgroundOptionsChanged(AChanges : TInstrumentBackgroundOptions);
Procedure MarginChanged;
Procedure DoPaint(ACanvas : TCanvas; X : Integer = 0; Y : Integer = 0);
Procedure PaintInterior(ACanvas : TCanvas; ARect : TRect);
Function  UseCreamBackground : Boolean;

TCustomInstrumentGraph:
Procedure SetMax(Const Value : TProgressValue);
Procedure SetMin(Const Value : TProgressValue);
Procedure DoGetValue(Var AValue : TGraphValue; AIndex : Integer);
Procedure BeginSetValues;
Procedure EndSetValues;

TInstrumentKnob

TInstrumentKno类的方法继承自基类 TCustomControl类的方法。和 TXPCustomControlTCustomInstrumentSlider 类提供以下附加方法:

TXPCustomControl:
Procedure UpdateSmoothDraw;
Function  GetModified : Boolean;
Procedure ClearModified;

TCustomInstrumentSlider:
Procedure SetHandleSize(AValue : TInstrumentSize);
Procedure SetMinValue(AValue : Double);
Procedure SetMaxValue(AValue : Double);
Procedure DrawSlot   (ACanvas : TCanvas; xOffset, yOffset : Integer);
Procedure DrawTick   (ACanvas : TCanvas; xOffset, yOffset : Integer; ATicks : TInstrumentTicksFloat; ATickValue : Double; AGraphics : Pointer; APen : Pointer;
Procedure DrawNumber (ACanvas : TCanvas; xOffset, yOffset : Integer; ANumberValue : Double; Const ANumberStr : String);
Procedure DrawHandle (ACanvas : TCanvas; xOffset, yOffset : Integer);
Function  GetPositionFromMouse(X, Y : Integer) : Double;
Function  GetToolTipReferenceRect : TRect;
Procedure DoGetHintText  (AValue : Double; Var AHintText : String);
Procedure DoGetScaleLabel(AValue : Double; Side : TInstrumentSide; Var ALabelString : String);

TInstrumentLabel

TInstrumentLabel类的方法。 TCustomLabel类的方法。该 TCustomInstrumentLabel类提供了以下附加方法:

TInstrumentLabel:
Procedure DoPaint(ACanvas : TCanvas; Const ARect : TRect);

TInstrumentLEDDigits

TInstrumentLEDDigit的方法继承自基类。 TGraphicControl类的方法。基类 TCustomGraphicInstrumentWithBackground, TCustomGraphicInstrumentWithInterior,
TCustomInstrumentDigitsPanelTCustomInstrumentLEDDigits类提供以下附加方法:

TCustomGraphicInstrumentWithBackground:
Procedure BackgroundOptionsChanged(AChanges : TInstrumentBackgroundOptions);
Procedure MarginChanged;

TCustomGraphicInstrumentWithInterior:
Procedure BackgroundOptionsChanged(AChanges : TInstrumentBackgroundOptions);
Procedure MarginChanged;
Procedure DoPaint(ACanvas : TCanvas; X : Integer = 0; Y : Integer = 0);
Procedure PaintInterior(ACanvas : TCanvas; ARect : TRect);
Function  UseCreamBackground : Boolean;

TCustomInstrumentDigitsPanel:
Procedure SetDigits       (Const AValue : NaturalNumber);
Procedure SetDigitsInGroup(Const AValue : NaturalNumber);
Procedure SetNumberType   (Const AValue : TNumberType);
Procedure SetPrecision    (Const AValue : TPrecision);
Procedure SetRadix        (Const AValue : TRadix);
Procedure DigitClick      (ADigitIndex : Integer; AButton : TMouseButton);
Function  GetDigitWidth  : Integer;
Function  GetDigitHeight : Integer;
Procedure PaintDigits     (ACanvas : TCanvas; ARect : TRect);
Procedure PaintDigit      (ACanvas : TCanvas; ARect : TRect; AValue : Byte);
Procedure ValueChanged;

TCustomInstrumentLEDDigits:
Procedure SetMax(Const Value : TProgressValue);
Procedure SetMin(Const Value : TProgressValue);

TInstrumentLEDsPanel

TInstrumentLEDsPanel 的方法继承自基类 TGraphicControl类的方法。基类 TCustomGraphicInstrumentWithBackground, TCustomGraphicInstrumentWithInterior,
TCustomInstrumentDigitsPanelTCustomInstrumentLEDsPanel类提供以下附加方法:

TCustomGraphicInstrumentWithBackground:
Procedure BackgroundOptionsChanged(AChanges : TInstrumentBackgroundOptions);
Procedure MarginChanged;

TCustomGraphicInstrumentWithInterior:
Procedure BackgroundOptionsChanged(AChanges : TInstrumentBackgroundOptions);
Procedure MarginChanged;
Procedure DoPaint(ACanvas : TCanvas; X : Integer = 0; Y : Integer = 0);
Procedure PaintInterior(ACanvas : TCanvas; ARect : TRect);
Function  UseCreamBackground : Boolean;

TCustomInstrumentDigitsPanel:
Procedure SetDigits       (Const AValue : NaturalNumber);
Procedure SetDigitsInGroup(Const AValue : NaturalNumber);
Procedure SetNumberType   (Const AValue : TNumberType);
Procedure SetPrecision    (Const AValue : TPrecision);
Procedure SetRadix        (Const AValue : TRadix);
Procedure DigitClick      (ADigitIndex : Integer; AButton : TMouseButton);
Function  GetDigitWidth  : Integer;
Function  GetDigitHeight : Integer;
Procedure PaintDigits     (ACanvas : TCanvas; ARect : TRect);
Procedure PaintDigit      (ACanvas : TCanvas; ARect : TRect; AValue : Byte);
Procedure ValueChanged;

TCustomInstrumentLEDsPanel:
Procedure SetMaxValue(Const AValue : LongWord);
Procedure SetMinValue(Const AValue : LongWord);

TInstrumentMultiGraph

TInstrumentMultiGraph 的方法继承自基 TGraphicControl类的方法。基类 TCustomGraphicInstrumentWithBackground, TCustomGraphicInstrumentWithInterior TCustomInstrumentGraph 类提供了以下附加方法:

TCustomGraphicInstrumentWithBackground:
Procedure BackgroundOptionsChanged(AChanges : TInstrumentBackgroundOptions);
Procedure MarginChanged;

TCustomGraphicInstrumentWithInterior:
Procedure BackgroundOptionsChanged(AChanges : TInstrumentBackgroundOptions);
Procedure MarginChanged;
Procedure DoPaint(ACanvas : TCanvas; X : Integer = 0; Y : Integer = 0);
Procedure PaintInterior(ACanvas : TCanvas; ARect : TRect);
Function  UseCreamBackground : Boolean;

TCustomInstrumentGraph:
Procedure SetMax(Const Value : TProgressValue);
Procedure SetMin(Const Value : TProgressValue);
Procedure DoGetValue(Var AValue : TGraphValue; AIndex : Integer);
Procedure BeginSetValues;
Procedure EndSetValues;

TInstrumentNumericPanel

TInstrumentNumericPanel 类的方法继承自基类 TGraphicControl类的方法。类 TCustomGraphicInstrumentWithBackground, TCustomGraphicInstrumentWithInterior,
TCustomInstrumentDigitsPanelTCustomInstrumentNumericPanel类提供以下附加方法:

TCustomGraphicInstrumentWithBackground:
Procedure BackgroundOptionsChanged(AChanges : TInstrumentBackgroundOptions);
Procedure MarginChanged;

TCustomGraphicInstrumentWithInterior:
Procedure BackgroundOptionsChanged(AChanges : TInstrumentBackgroundOptions);
Procedure MarginChanged;
Procedure DoPaint(ACanvas : TCanvas; X : Integer = 0; Y : Integer = 0);
Procedure PaintInterior(ACanvas : TCanvas; ARect : TRect);
Function  UseCreamBackground : Boolean;

TCustomInstrumentDigitsPanel:
Procedure SetDigits       (Const AValue : NaturalNumber);
Procedure SetDigitsInGroup(Const AValue : NaturalNumber);
Procedure SetNumberType   (Const AValue : TNumberType);
Procedure SetPrecision    (Const AValue : TPrecision);
Procedure SetRadix        (Const AValue : TRadix);
Procedure DigitClick      (ADigitIndex : Integer; AButton : TMouseButton);
Function  GetDigitWidth  : Integer;
Function  GetDigitHeight : Integer;
Procedure PaintDigits     (ACanvas : TCanvas; ARect : TRect);
Procedure PaintDigit      (ACanvas : TCanvas; ARect : TRect; AValue : Byte);
Procedure ValueChanged;

TCustomInstrumentNumericPanel:
Procedure SetMaxValue(Const AValue : TNumericValue);
Procedure SetMinValue(Const AValue : TNumericValue);

TInstrumentPanel

TInstrumentPanel 的方法继承自基类 TCustomControl类的方法。和 TXPCustomControlTCustomInstrumentPanel类提供以下附加方法:

TXPCustomControl:
Procedure UpdateSmoothDraw;
Function  GetModified : Boolean;
Procedure ClearModified;

TCustomInstrumentPanel:
Procedure PaintOnPanel(APanel : TCustomInstrumentBackgroundPanel);

TInstrumentProgressBar

TInstrumentProgressBar 类的方法。 TGraphicControl类的方法。基类 TCustomGraphicInstrumentWithBackground, TCustomGraphicInstrumentWithNoise TCustomInstrumentProgressBar 类提供了以下附加方法:

TCustomGraphicInstrumentWithBackground:
Procedure BackgroundOptionsChanged(AChanges : TInstrumentBackgroundOptions);
Procedure MarginChanged;

TCustomGraphicInstrumentWithNoise:
Procedure PaintOnPanel(APanel : TCustomInstrumentBackgroundPanel);
Procedure PaintControlBackground(ABitmap : TBitmap; X, Y : Integer);
Procedure PaintControlForeground(ABitmap : TBitmap; X, Y : Integer);

TCustomInstrumentProgressBar:
Procedure SetMax(Const Value : TProgressValue);
Procedure SetMin(Const Value : TProgressValue);

TInstrumentRadioButton

TInstrumentRadioButton 类的方法继承自基 TGraphicControl类的方法。TCustomInstrumentCheckBox 和 TCustomInstrumentRadioButton 类提供以下附加方法:

TCustomInstrumentCheckBox:
Procedure Changed;

TCustomInstrumentRadioButton:
Procedure TurnSiblingsOff;

TInstrumentRadioGroup

TInstrumentRadioGroup从基类继承其方法。 TCustomControl类的方法。和 TXPCustomControlTCustomInstrumentPanel类提供以下附加方法:

TXPCustomControl:
Procedure UpdateSmoothDraw;
Function  GetModified : Boolean;
Procedure ClearModified;

TCustomInstrumentPanel:
Procedure PaintOnPanel(APanel : TCustomInstrumentBackgroundPanel);

TInstrumentScrollbar

TInstrumentScrollbar 类的方法。 TCustomControl类的方法。基类 TXPCustomControl, TCustomXPScrollBar TCustomInstrumentScrollBar类提供了以下附加方法:

TXPCustomControl:
Procedure UpdateSmoothDraw;
Function  GetModified : Boolean;
Procedure ClearModified;

TCustomXPScrollBar:
Procedure Change;
Procedure Scroll(ScrollCode : TScrollCode; Var ScrollPos : Integer);
Function  IgnoreThemePainting : Boolean;
Procedure DrawShaft   (Const ARect : TRect; AState : Integer);
Procedure DrawArrowBtn(Const ARect : TRect; AState : Integer; AOffset : Integer; AIsUp : Boolean);
Procedure DrawThumb   (Const ARect : TRect; AState : Integer);
Procedure SetParams   (APosition, AMin, AMax : Integer);

TCustomInstrumentScrollBar:
Procedure SetBounds(ALeft, ATop, AWidth, AHeight : Integer);

TInstrumentShape

TInstrumentShape从基本 TShape组件类。

TInstrumentSilkScreen

TInstrumentSilkScree类的方法。 TCustomControl类的方法。该 TXPCustomControl类提供了以下附加方法:

TXPCustomControl:
Procedure UpdateSmoothDraw;
Function  GetModified : Boolean;
Procedure ClearModified;

TInstrumentTerminal

TInstrumentTerminal 继承自基类。 TCustomControl类的方法。方法 TXPCustomControl, TCustomInstrumentPanelTCustomInstrumentTerminal类提供了以下附加方法:

TXPCustomControl:
Procedure UpdateSmoothDraw;
Function  GetModified : Boolean;
Procedure ClearModified;

TCustomInstrumentPanel:
Procedure PaintOnPanel(APanel : TCustomInstrumentBackgroundPanel);

TCustomInstrumentTerminal:
Procedure DoTransmitChar(AChar : Char);
Procedure PutChar(AChar : Char ; ATransmit : Boolean);
Procedure PutString(Const AString : String; ATransmit : Boolean);
Procedure Clear;
Procedure GetLines(ALines : TStrings);

TInstrumentTrackBar

TInstrumentTrackBar 类的方法继承自基类 TCustomControl类的方法。和 TXPCustomControlTCustomInstrumentSlider 类提供了以下附加方法:

TXPCustomControl:
Procedure UpdateSmoothDraw;
Function  GetModified : Boolean;
Procedure ClearModified;

TCustomInstrumentSlider:
Procedure SetHandleSize(AValue : TInstrumentSize);
Procedure SetMinValue(AValue : Double);
Procedure SetMaxValue(AValue : Double);
Procedure DrawSlot   (ACanvas : TCanvas; xOffset, yOffset : Integer);
Procedure DrawTick   (ACanvas : TCanvas; xOffset, yOffset : Integer; ATicks : TInstrumentTicksFloat; ATickValue : Double; AGraphics : Pointer; APen : Pointer;
Procedure DrawNumber (ACanvas : TCanvas; xOffset, yOffset : Integer; ANumberValue : Double; Const ANumberStr : String);
Procedure DrawHandle (ACanvas : TCanvas; xOffset, yOffset : Integer);
Function  GetPositionFromMouse(X, Y : Integer) : Double;
Function  GetToolTipReferenceRect : TRect;
Procedure DoGetHintText  (AValue : Double; Var AHintText : String);
Procedure DoGetScaleLabel(AValue : Double; Side : TInstrumentSide; Var ALabelString : String)
AI-LocalizedAI 翻译
如您发现任何问题,请选中相关文本/图片,并按 Ctrl + Enter 键向我们提交反馈。
功能可用性

您可使用的功能取决于您所选择的 Altium 解决方案 —— Altium DevelopAltium Agile(Agile Teams 或 Agile Enterprise 版本),或仍在有效订阅期内的 Altium Designer。

如果您在软件中未找到文中提及的功能,请联系 Altium 销售团队了解更多信息。

旧版文档

Altium Designer 文档不再提供版本区分。如果您需要访问 Altium Designer 旧版本的文档,请前往其他安装程序页面的旧版文档部分。