Controlli dello strumento

A colpo d'occhio

Esplora i controlli di strumentazione disponibili nell’ambiente di scripting di Altium Designer, con un riferimento ai metodi dei componenti e alla loro gerarchia di ereditarietà Delphi VCL. Questo articolo spiega come esaminare proprietà ed eventi, trovare i metodi tramite il completamento del codice e orientarsi tra controlli come pulsanti, indicatori e display. Segnala inoltre che il supporto alla progettazione FPGA per il monitoraggio e il controllo dei segnali tramite strumenti personalizzati è terminato con Altium Designer 18.0. Continua a leggere per trovare i dettagli di riferimento necessari per le tue attività di scripting.

- Trova le proprietà e gli eventi dei controlli nel pannello Object Inspector e scopri i metodi con Ctrl+Spazio.
- Scopri quali metodi i controlli ereditano dalle classi VCL e quali metodi aggiuntivi offrono.
- Consulta i riferimenti ai metodi dei singoli componenti, tenendo presente la limitazione del supporto FPGA.
Approfondisci con l'IA:

La scheda Tool Palette's Instrument Controls contiene componenti (controlli) utilizzati per progettare l'interfaccia grafica di un pannello Custom Instrument di Altium Designer. Questi controlli sono destinati specificamente all'uso con Custom Instrument.

Sebbene i controlli dello strumento siano disponibili nell'ambiente di scripting di Altium Designer, si noti che, a partire dalla versione 18.0, Altium Designer non supporta i progetti FPGA nei quali i segnali possono essere monitorati e controllati con strumenti personalizzati.
Sebbene i controlli dello strumento siano disponibili nell'ambiente di scripting di Altium NEXUS, si noti che Altium NEXUS non supporta i progetti FPGA nei quali i segnali possono essere monitorati e controllati con strumenti personalizzati.

► Consultare Interfaccia grafica di Custom Instrument - Controlli dello strumento disponibili per una descrizione funzionale di ciascun controllo dello strumento.

Per visualizzare le proprietà e gli eventi associati a un componente di controllo dello strumento posizionato su un modulo di script, utilizzare la scheda Properties o Events nel pannello Object Inspector (View » Panels » Object Inspector).

Per trovare un metodo (o una proprietà) specifico di un controllo dello strumento, utilizzare la funzione di completamento del codice (vedere Strumenti dell'editor di script). Ad esempio, digitando TInstrumentCheckBox.get la finestra di completamento del codice mostrerà un elenco opportunamente filtrato di metodi e proprietà per il componente TInstrumentCheckBox . Utilizzare Ctrl+Space per aprire manualmente la finestra di completamento del codice.

Utilizzare la funzione di completamento del codice (Ctrl+Space) per visualizzare i metodi o le proprietà disponibili per un componente.
Utilizzare la funzione di completamento del codice (Ctrl+Space) per visualizzare i metodi o le proprietà disponibili per un componente.

Ereditarietà

La maggior parte delle classi dei controlli dello strumento eredita i propri metodi (nonché proprietà ed eventi) dalle classi base TGraphicControl o TCustomControl della VCL Delphi. Pertanto, i metodi dei controlli dello strumento descritti qui si aggiungono a quelli di una di queste classi base, come indicato nella voce di riferimento di ciascun controllo.

A titolo di esempio, la gerarchia di ereditarietà discendente per il controllo TInstrumentCheckBox è la seguente:

Percorso di ereditarietà Metodi
TGraphicControl Vedere il riferimento Delphi corrispondente.
    TCustomInstrumentCheckBox Vedere la voce TXPCheckBox di seguito.
        TInstrumentCheckBox Vedere la voce TXPCheckBox di seguito.

Metodi dei componenti

I componenti di controllo dello strumento Altium si basano sulle classi fondamentali della Visual Component Library (VCL) di Embarcadero. Ogni controllo dello strumento eredita metodi, proprietà ed eventi dalla propria classe VCL di origine e la maggior parte offre ulteriori metodi personalizzati. Ad esempio, sia il componente TInstrumentCheckBox sia il componente standard TCheckBox offrono il metodo Click, mentre il componente TInstrumentCheckBox fornisce anche il metodo Changed.

Utilizzare il seguente elenco per accedere alle informazioni sui metodi disponibili per ciascun componente della categoria dei controlli dello strumento:

TSignalLinkManager Gestore dei collegamenti dei segnali dello strumento.
TInstrumentBackgroundPanel Colore di sfondo del pannello dello strumento.
TInstrumentBackground Colore di sfondo dello strumento.
TInstrumentButton Pulsante dello strumento.
TInstrumentCaption Didascalia del pannello dello strumento.
TInstrumentCheckBox Casella di controllo dello strumento.
TInstrumentEdit Casella di modifica dello strumento.
TInstrumentGauge Indicatore/misuratore analogico dello strumento.
TInstrumentGlyphButton Immagine grafica del pulsante di accesso rapido dello strumento.
TInstrumentGraph Visualizzazione grafica dello strumento.
TInstrumentKnob Manopola di controllo rotativa dello strumento.
TInstrumentLabel Etichetta del pannello dello strumento.
TInstrumentLEDDigits Display LED digitale a 7 segmenti.
TInstrumentLEDsPanel Fila di indicatori LED raggruppati.
TInstrumentMultiGraph Visualizzazione grafica a più tracce.
TInstrumentNumericPanel Visualizzazione numerica dello strumento.
TInstrumentPanel Area del pannello dello strumento.
TInstrumentProgressBar Indicatore di segnale/avanzamento a barra LED
TInstrumentRadioButton Selettore a pulsante di opzione dello strumento.
TInstrumentRadioGroup Controllo di raggruppamento dei pulsanti di opzione dello strumento.
TInstrumentScrollbar Controllo barra di scorrimento dello strumento.
TInstrumentShape Forma geometrica del pannello dello strumento.
TInstrumentSilkScreen Sovrapposizione serigrafica del pannello dello strumento.
TInstrumentTerminal Finestra terminale per la visualizzazione dei caratteri dello strumento.
TInstrumentTrackBar Controllo a cursore dello strumento.

TSignalLinkManager

TSignalLinkManager eredita i propri metodi dalla classe base TComponent. La classe TSignalLinkManager fornisce i seguenti metodi aggiuntivi:

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

TInstrumentBackgroundPanel

TInstrumentBackgroundPanel eredita i propri metodi dalla classe base TCustomControl. Le classi TXPCustomControl, TXPCustomExtPanel e TCustomInstrumentBackgroundPanel forniscono i seguenti metodi aggiuntivi:

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 eredita i propri metodi dalla classe base TGraphicControl. Le classi TCustomGraphicInstrumentWithBackground e TCustomGraphicInstrumentWithInterior forniscono i seguenti metodi aggiuntivi:

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 eredita i propri metodi dalla classe base TCustomControl. Le classi TXPCustomControl, TXPCustomTransparentControl, TXPBaseCustomSpeedButton, TXPCustomSpeedButton e TCustomInstrumentButton forniscono i seguenti metodi aggiuntivi:

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 eredita i propri metodi dalla classe base TCustomLabel. La classe TCustomInstrumentLabel fornisce il seguente metodo aggiuntivo:

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

TInstrumentCheckBox

TInstrumentCheckBox eredita i propri metodi dalla classe base TGraphicControl. La classe TCustomInstrumentCheckBox fornisce il seguente metodo aggiuntivo:

TCustomInstrumentCheckBox:
Procedure Changed;

TInstrumentEdit

TInstrumentEdit eredita i propri metodi dalla classe base TCustomControl. Le classi TXPCustomControl e TCustomXPEdit forniscono i seguenti metodi aggiuntivi:

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 eredita i propri metodi dalla classe base TGraphicControl. Le classi TCustomGraphicInstrumentWithBackground, TCustomGraphicInstrumentWithNoise e TCustomInstrumentGauge forniscono i seguenti metodi aggiuntivi:

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 eredita i propri metodi dalla classe base TCustomControl. Le classi TXPCustomControl, TXPCustomTransparentControl, TXPBaseCustomSpeedButton, TXPCustomSpeedButton, TCustomInstrumentButton e TCustomInstrumentGlyphButton forniscono i seguenti metodi aggiuntivi:

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 eredita i propri metodi dalla classe base TGraphicControl. Le classi TCustomGraphicInstrumentWithBackground, TCustomGraphicInstrumentWithInterior e TCustomInstrumentGraph forniscono i seguenti metodi aggiuntivi:

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 eredita i propri metodi dalla classe base TCustomControl. Le classi TXPCustomControl e TCustomInstrumentSlider forniscono i seguenti metodi aggiuntivi:

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 eredita i propri metodi dalla classe base TCustomLabel. La classe TCustomInstrumentLabel fornisce il seguente metodo aggiuntivo:

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

TInstrumentLEDDigits

TInstrumentLEDDigit eredita i propri metodi dalla classe base TGraphicControl. Le classi TCustomGraphicInstrumentWithBackground, TCustomGraphicInstrumentWithInterior,
TCustomInstrumentDigitsPanel e TCustomInstrumentLEDDigits forniscono i seguenti metodi aggiuntivi:

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 eredita i propri metodi dalla classe base TGraphicControl. Le classi TCustomGraphicInstrumentWithBackground, TCustomGraphicInstrumentWithInterior,
TCustomInstrumentDigitsPanel e TCustomInstrumentLEDsPanel forniscono i seguenti metodi aggiuntivi:

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 eredita i propri metodi dalla classe base TGraphicControl. Le classi TCustomGraphicInstrumentWithBackground, TCustomGraphicInstrumentWithInterior e TCustomInstrumentGraph forniscono i seguenti metodi aggiuntivi:

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 eredita i propri metodi dalla classe base TGraphicControl. Le classi TCustomGraphicInstrumentWithBackground, TCustomGraphicInstrumentWithInterior,
TCustomInstrumentDigitsPanel e TCustomInstrumentNumericPanel forniscono i seguenti metodi aggiuntivi:

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 eredita i propri metodi dalla classe base TCustomControl. Le classi TXPCustomControl e TCustomInstrumentPanel forniscono i seguenti metodi aggiuntivi:

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

TCustomInstrumentPanel:
Procedure PaintOnPanel(APanel : TCustomInstrumentBackgroundPanel);

TInstrumentProgressBar

TInstrumentProgressBar eredita i propri metodi dalla classe base TGraphicControl. Le classi TCustomGraphicInstrumentWithBackground, TCustomGraphicInstrumentWithNoise e TCustomInstrumentProgressBar forniscono i seguenti metodi aggiuntivi:

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 eredita i propri metodi dalla classe base TGraphicControl. Le classi TCustomInstrumentCheckBox e TCustomInstrumentRadioButton forniscono i seguenti metodi aggiuntivi:

TCustomInstrumentCheckBox:
Procedure Changed;

TCustomInstrumentRadioButton:
Procedure TurnSiblingsOff;

TInstrumentRadioGroup

TInstrumentRadioGroup eredita i propri metodi dalla classe base TCustomControl. Le classi TXPCustomControl e TCustomInstrumentPanel forniscono i seguenti metodi aggiuntivi:

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

TCustomInstrumentPanel:
Procedure PaintOnPanel(APanel : TCustomInstrumentBackgroundPanel);

TInstrumentScrollbar

TInstrumentScrollbar eredita i propri metodi dalla classe base TCustomControl. Le classi TXPCustomControl, TCustomXPScrollBar e TCustomInstrumentScrollBar forniscono i seguenti metodi aggiuntivi:

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 eredita i propri metodi dalla classe base del componente TShape.

TInstrumentSilkScreen

TInstrumentSilkScree eredita i propri metodi dalla classe base TCustomControl. La classe TXPCustomControl fornisce i seguenti metodi aggiuntivi:

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

TInstrumentTerminal

TInstrumentTerminal eredita i propri metodi dalla classe base TCustomControl. Le classi TXPCustomControl, TCustomInstrumentPanel e TCustomInstrumentTerminal forniscono i seguenti metodi aggiuntivi:

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 eredita i propri metodi dalla classe base TCustomControl. Le classi TXPCustomControl e TCustomInstrumentSlider forniscono i seguenti metodi aggiuntivi:

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-LocalizedLocalizzato tramite A
Se trovi un problema, seleziona il testo/l’immagine e premi Ctrl + Enter per inviarci il tuo feedback.
Nav
Contents
Disponibilità delle funzionalità

Le funzionalità a tua disposizione dipendono dalla soluzione Altium di cui disponi: Altium Develop, Altium Agile Teams, Altium Agile Enterprise oppure Altium Designer (con abbonamento attivo).

Se non vedi una funzionalità documentata nel software che stai effettivamente utilizzando, contatta il reparto vendite di Altium per saperne di più.

Documentazione legacy

La documentazione di Altium Designer non è più suddivisa per versione. Se è necessario accedere alla documentazione delle versioni precedenti di Altium Designer, visitare la sezione Documentazione legacy della pagina Altri programmi di installazione.