Điều khiển tập lệnh tiêu chuẩn Altium
Tab Tool Palette's Altium Standard bao gồm các thành phần kiểu chuẩn với giao diện Altium (look and feel) được áp dụng. Trong hầu hết trường hợp, có sẵn các phương thức tùy chỉnh và các thuộc tính bổ sung.
Để xem các Properties và Events liên quan cho một thành phần Altium Standard được đặt trên một Form script, hãy dùng tab Properties hoặc Events trong bảng Object Inspector panel (View » Panels » Object Inspector).
Để tìm một Method (hoặc Property) cụ thể cho một thành phần Altium Standard, hãy dùng tính năng Code Completion (xem Script Editor Tools). Ví dụ, khi gõ TXPCheckBox.get cửa sổ Code Completion sẽ hiển thị danh sách các phương thức và thuộc tính đã được lọc phù hợp cho thành phần TXPCheckBox. Dùng Ctrl+Space để gọi thủ công cửa sổ Code Completion.

Dùng tính năng Code Completion (Ctrl+Space) để xem các Methods hoặc Properties khả dụng cho một thành phần.
Kế thừa
Phần lớn các lớp Altium Standard Control kế thừa Methods (cũng như Properties và Events) từ lớp cơ sở Delphi VCL TCustomControl. Chuỗi kế thừa đi xuống thường là:
TCustomControl
TXPCustomControl
... các control Altium Standard
Vì vậy, các phương thức cho từng control Altium Standard được đề cập ở đây là addition bổ sungTCustomControl cho các phương thức chuẩn của , như được ghi chú trong từng mục tham chiếu.
Lấy ví dụ, chuỗi kế thừa đi xuống của control TXPCheckBox như sau:
| Đường dẫn kế thừa | Methods |
|---|---|
TCustomControl |
Xem tài liệu tham chiếu Delphi tương ứng. |
TXPCustomControl |
Xem mục TXPCheckBox bên dưới. |
TWinXPCustomButtonControl |
Xem mục TXPCheckBox bên dưới. |
TXPCheckControl |
Xem mục TXPCheckBox bên dưới. |
TXPCheckBox |
Xem mục TXPCheckBox bên dưới. |
Các ngoại lệ của đường dẫn kế thừa 'TCustomControl → TXPCustomControl → xxx' là các control TXPLabel, TXPSpinnerImage, TXPImageList, TXPSplitter và TXStatusBar. Các control này kế thừa trực tiếp từ các control chuẩn, như được ghi trong các mục tương ứng bên dưới.
Phương thức của thành phần
Nhìn chung, các thành phần Altium Standard cung cấp các phương thức cơ bản của đối tượng tương ứng thông thường, cùng với một số phương thức tùy chỉnh bổ sung. Ví dụ, cả hai thành phần TXPCheckBox và thành phần thông thường TCheckBox đều cung cấp hàm GetChecked, trong khi hàm GetAlphaImage chỉ có riêng ở TXPCheckBox.
Dùng danh sách sau để điều hướng tới thông tin về các phương thức có sẵn cho từng thành phần trong nhóm Altium Standard:
![]() |
TWinXPPageControl | Liên quan đến thành phần TPageControl (tab Win32). |
| TWinXPTabControl | Liên quan đến thành phần TTabControl (tab Win32). | |
| TXPBitBtn | Liên quan đến thành phần TBitBtn (tab Additional). | |
| TXPButton | Liên quan đến thành phần TButton (tab Standard). | |
| TXPButtonEdit | Liên quan đến thành phần TEdit (tab Standard). | |
| TXPButtonEx | Liên quan đến thành phần TButton (tab Standard). | |
| TXPCheckBox | Liên quan đến thành phần TCheckBox (tab Standard). | |
| TXPComboBox | Liên quan đến thành phần TComboBox (tab Standard). | |
| TXPDirectoryEdit | Liên quan đến thành phần TEdit (tab Standard). | |
| TXPEdit | Liên quan đến thành phần TEdit (tab Standard). | |
| TXPExtPanel | Liên quan đến thành phần TPanel (tab Standard). | |
| TXPFileNameEdit | Liên quan đến thành phần TEdit (tab Standard). | |
| TXPGroupBox | Liên quan đến thành phần TGroupBox (tab Standard). | |
| TXPHistoryEdit | Liên quan đến thành phần TEdit (tab Standard). | |
| TXPImageList | Liên quan đến thành phần TImageList (tab Win32). | |
| TXPSpinnerImage | Liên quan đến thành phần TImage (tab Additional). | |
| TXPLabel | Liên quan đến thành phần TLabel (tab Standard). | |
| TXPListBox | Liên quan đến thành phần TListBox (tab Standard). | |
| TXPProgressBar | Liên quan đến thành phần TProgressBar (tab Win32). | |
| TXPRadioButton | Liên quan đến thành phần TRadioButton (tab Standard). | |
| TXPRadioGroup | Liên quan đến thành phần TRadioGroup (tab Standard). | |
| TXPScrollBar | Liên quan đến thành phần TScrollbar (tab Standard). | |
| TXPSpeedButton | Liên quan đến thành phần TSpeedButton (tab Additional). | |
| TXPSpinEdit | Liên quan đến thành phần TEdit (tab Standard). | |
| TXPSplitButton | Liên quan đến thành phần TButton (tab Standard). | |
| TXPSplitter | Liên quan đến thành phần TSplitter (tab Additional). | |
| TXPTrackBar | Liên quan đến thành phần TTrackbar (tab Win32). | |
| TXStatusBar | Liên quan đến thành phần TStatusBar (tab Win32). |
TWinXPPageControl
TWinXPPageControl là một biến thể của thành phần TPageControl và cung cấp các phương thức riêng sau:
TWinXPPageControl:
Procedure InsertPage(Page : TWinXPTabSheet);
Procedure InsertPageAt(Index : Integer; Page : TWinXPTabSheet);
Procedure RemovePage(Page : TWinXPTabSheet);
Ngoài ra, TWinXPPageControl kế thừa các phương thức từ TCustomControl và các lớp đi xuống sau:
TXPCustomControl:
Procedure UpdateSmoothDraw;
Function GetModified : Boolean;
Procedure ClearModified;
TWinXPCustomTabControl:
Function Changing : Boolean
Function CreateTabs : TStrings;
Function GetTabIndex : Integer;
Function IsTabVisible(Index : Integer) : Boolean;
Function IsTabUseImage(Index : Integer) : Boolean;
Procedure SetActiveTabIndex(Const Value : Integer);
Procedure UpdateActivePage;
Procedure SetFocusAfterTabChange;
Procedure SelectNextPage(GoForward : Boolean);
TWinXPTabControl
TWinXPTabControl là một biến thể của thành phần TTabControl và cung cấp các phương thức riêng sau:
TWinXPCustomTabControl:
Function Changing : Boolean
Function CreateTabs : TStrings;
Function GetTabIndex : Integer;
Function IsTabVisible(Index : Integer) : Boolean;
Function IsTabUseImage(Index : Integer) : Boolean;
Procedure SetActiveTabIndex(Const Value : Integer);
Procedure UpdateActivePage;
Procedure SetFocusAfterTabChange;
Procedure SelectNextPage(GoForward : Boolean);
Ngoài ra, TWinXPTabControl kế thừa các phương thức từ TCustomControl và lớp đi xuống sau:
TXPCustomControl:
Procedure UpdateSmoothDraw;
Function GetModified : Boolean;
Procedure ClearModified;
TXPBitBtn
TXPBitBtn là một biến thể của thành phần TBitBtn . Nó kế thừa các phương thức từ TCustomControl và các lớp đi xuống sau:
TXPCustomControl:
Procedure UpdateSmoothDraw;
Function GetModified : Boolean;
Procedure ClearModified;
TWinXPCustomButtonControl:
Procedure CompulsoryClick;
Procedure ButtonMouseDown(X, Y : Integer);
Procedure ButtonMouseMove(X, Y : Integer);
Procedure ButtonMouseUp (X, Y : Integer);
Function GetControlState(Enabled, Pressed, Hot : Boolean) : TThemedButton; Virtual;
TWinXPCustomButton:
Function GetShiftContentIfPressed : Boolean;
Procedure ReDrawCaption(ARect : TRect; AFontColor : TColor);
Procedure ReDrawInside (ARect : TRect; AFontColor : TColor);
TXPButton
TXPButton là một biến thể của thành phần TButton . Nó kế thừa các phương thức từ TCustomControl và các lớp đi xuống sau:
TXPCustomControl:
Procedure UpdateSmoothDraw;
Function GetModified : Boolean;
Procedure ClearModified;
TXPCustomButton:
Procedure DoMouseHover(State : TMouseState)
Procedure InternalPaint(ARect : TRect)
Procedure Prepaint(Var ARect : TRect)
TXPButtonEdit
TXPDirectoryEdit là một biến thể của thành phần TEdit . Nó kế thừa các phương thức từ TCustomControl và các lớp đi xuống sau:
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;
TXPCustomButtonEdit:
Procedure ButtonClick;
Procedure CtrlEnterClick;
Procedure DoAdjustClientRect(Var Rect : TRect);
Function GetButtonDetails(AButton : TXPEditButton) : TThemedElementDetails;
Function GetButtonVisible(AButton : TXPEditButton; AVisible : Boolean) : Boolean;
Function GetGlyph(AButton : TXPEditButton) : TGraphic;
Procedure PaintButton(AButton : TXPEditButton);
Procedure PaintGlyph(AButton : TXPEditButton; Const ARect : TRect);
Procedure SetButtonVisibility;
TXPButtonEx
TXPButtonEx là một phiên bản tùy chỉnh (Extra) của thành phần TButton . Nó kế thừa các phương thức từ TCustomControl và các lớp đi xuống sau:
TXPCustomControl:
Procedure UpdateSmoothDraw;
Function GetModified : Boolean;
Procedure ClearModified;
TXPCustomButton:
Procedure DoMouseHover(State : TMouseState)
Procedure InternalPaint(ARect : TRect)
Procedure Prepaint(Var ARect : TRect)
TXPCheckBox
TXPCheckBox là một biến thể của thành phần TCheckBox . Nó kế thừa các phương thức từ TCustomControl và các lớp đi xuống sau:
TXPCustomControl:
Procedure UpdateSmoothDraw;
Function GetModified : Boolean;
Procedure ClearModified;
TWinXPCustomButtonControl:
Procedure CompulsoryClick;
Procedure ButtonMouseDown(X, Y : Integer);
Procedure ButtonMouseMove(X, Y : Integer);
Procedure ButtonMouseUp (X, Y : Integer);
Function GetControlState(Enabled, Pressed, Hot : Boolean) : TThemedButton; Virtual; Abstract;
TXPCheckControl:
Function GetChecked : Boolean;
Procedure SetChecked(Value : Boolean);
Procedure ReDrawCaption(AColor, AFontColor : TColor);
Procedure Toggle;
Function GetPartId : Integer;
Function GetStateBase : TThemedButton;
Function GetAlphaImage : TAlphaImage;
Function GetFrameCtrlStateFlags : Integer;
TXPComboBox
TXPComboBox là một biến thể của thành phần TComboBox và cung cấp các phương thức riêng sau:
TXPCustomComboBox:
Procedure Button2Click;
Function GetPopupItemWidth(Index : Integer) : Integer;
Function UserCanOpenDropDown : Boolean;
Procedure CloseUp;
Procedure DropDown;
Procedure Select;
Ngoài ra, TXPComboBox kế thừa các phương thức từ TCustomControl và các lớp đi xuống sau:
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;
TXPCustomButtonEdit:
Procedure ButtonClick;
Procedure CtrlEnterClick;
Procedure DoAdjustClientRect(Var Rect : TRect);
Function GetButtonDetails(AButton : TXPEditButton) : TThemedElementDetails;
Function GetButtonVisible(AButton : TXPEditButton; AVisible : Boolean) : Boolean;
Function GetGlyph(AButton : TXPEditButton) : TGraphic;
Procedure PaintButton(AButton : TXPEditButton);
Procedure PaintGlyph(AButton : TXPEditButton; Const ARect : TRect);
Procedure SetButtonVisibility;
TXPDirectoryEdit
TXPDirectoryEdit là một biến thể của thành phần TEdit . Nó kế thừa các phương thức từ TCustomControl và các lớp đi xuống sau:
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;
TXPCustomButtonEdit:
Procedure ButtonClick;
Procedure CtrlEnterClick;
Procedure DoAdjustClientRect(Var Rect : TRect);
Function GetButtonDetails(AButton : TXPEditButton) : TThemedElementDetails;
Function GetButtonVisible(AButton : TXPEditButton; AVisible : Boolean) : Boolean;
Function GetGlyph(AButton : TXPEditButton) : TGraphic;
Procedure PaintButton(AButton : TXPEditButton);
Procedure PaintGlyph(AButton : TXPEditButton; Const ARect : TRect);
Procedure SetButtonVisibility;
TXPEdit
TXPEdit là một biến thể của thành phần TEdit và cung cấp các phương thức riêng sau:
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;
Ngoài ra, TXPEdit kế thừa các phương thức từ TCustomControl và lớp đi xuống sau:
TXPCustomControl:
Procedure UpdateSmoothDraw;
Function GetModified : Boolean;
Procedure ClearModified;
TXPExtPanel
TXPExtPanel là một phiên bản tùy chỉnh (Extra) của thành phần TPanel và cung cấp các phương thức riêng sau:
TXPCustomExtPanel:
Function GetDrawingMode : TXPDrawingMode;
Function UseRegion : Boolean;
Function DoCreateRegion : HRGN;
Procedure BeginUpdate;
Procedure EndUpdate;
Ngoài ra, TXPExtPanel kế thừa các phương thức từ TCustomControl và lớp đi xuống sau:
TXPCustomControl:
Procedure UpdateSmoothDraw;
Function GetModified : Boolean;
Procedure ClearModified;
TXPFileNameEdit
TXPFileNameEdit là một biến thể của thành phần TEdit . Nó kế thừa các phương thức từ TCustomControl và các lớp đi xuống sau:
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;
TXPCustomButtonEdit:
Procedure ButtonClick;
Procedure CtrlEnterClick;
Procedure DoAdjustClientRect(Var Rect : TRect);
Function GetButtonDetails(AButton : TXPEditButton) : TThemedElementDetails;
Function GetButtonVisible(AButton : TXPEditButton; AVisible : Boolean) : Boolean;
Function GetGlyph(AButton : TXPEditButton) : TGraphic;
Procedure PaintButton(AButton : TXPEditButton);
Procedure PaintGlyph(AButton : TXPEditButton; Const ARect : TRect);
Procedure SetButtonVisibility;
TXPGroupBox
TXPGroupBox là một biến thể của thành phần TGroupBox . Nó kế thừa các phương thức từ TCustomControl và lớp đi xuống sau:
TXPCustomControl:
Procedure UpdateSmoothDraw;
Function GetModified : Boolean;
Procedure ClearModified;
TXPHistoryEdit
TXPHistoryEdit là một biến thể của thành phần TEdit và cung cấp các phương thức riêng sau:
TXPHistoryEdit:
Procedure HistoryChanged;
Procedure SaveHistory;
Procedure LoadHistory;
Procedure EmptyHistory;
Ngoài ra, TXPHistoryEdit kế thừa các phương thức từ TCustomControl và các lớp đi xuống sau:
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;
TXPCustomButtonEdit:
Procedure ButtonClick;
Procedure CtrlEnterClick;
Procedure DoAdjustClientRect(Var Rect : TRect);
Function GetButtonDetails(AButton : TXPEditButton) : TThemedElementDetails;
Function GetButtonVisible(AButton : TXPEditButton; AVisible : Boolean) : Boolean;
Function GetGlyph(AButton : TXPEditButton) : TGraphic;
Procedure PaintButton(AButton : TXPEditButton);
Procedure PaintGlyph(AButton : TXPEditButton; Const ARect : TRect);
Procedure SetButtonVisibility;
TXPCustomComboBox:
Procedure Button2Click;
Function GetPopupItemWidth(Index : Integer) : Integer;
Function UserCanOpenDropDown : Boolean;
Procedure CloseUp;
Procedure DropDown;
Procedure Select;
TXPImageList
TXPImageList là một biến thể của thành phần TImageList và kế thừa các phương thức của nó từ lớp chuẩn TImageList .
TXPSpinnerImage
TXPSpinnerImage là một biến thể của thành phần TImage và cung cấp các phương thức riêng sau:
TXPSpinnerImage:
Class Procedure LoadSpinnerPicture (APicture : TPicture);
Class Function CreateGraphic : TGraphic;
Ngoài ra, TXPSpinnerImage kế thừa các phương thức từ lớp chuẩn TImage :
TXPLabel
TXPLabel là một biến thể của thành phần TLabel và kế thừa các phương thức của nó từ lớp TCustomLabel.
TXPListBox
TXPListBox là một biến thể của thành phần TList và cung cấp các phương thức riêng sau:
TCustomXPListBox:
Procedure ClickCheck;
Function GetTextShift : Integer;
Function GetBackColor : TColor;
Function GetPrevItemIndex : Integer;
Function GetNextItemIndex : Integer;
Procedure SelectionChanged;
Procedure NCCalcSize(Var Msg : TWMNCCalcSize);
Function NCPaint : Boolean;
Procedure UpdateItemsAreaWidth;
Procedure CorrectPopupItemHeight(Var Value : Integer);
Procedure DoDrawEmptySpace;
Procedure DoDrawCheck (Index : Integer);
Procedure DoDrawItem (Index : Integer);
Procedure DoOwnerDrawItem(Index : Integer);
Procedure DoDrawItemText (Index : Integer; Const ARect : TRect);
Function GetItemsClientRect : TRect;
Function GetThemeCheckSize(Var ARect : TRect; AState : TThemedButton) : TSize;
Function GetItemTextWidth(Index : Integer) : Integer;
Function GetItemTextHeight : Integer;
Procedure Clear;
Procedure ClearSelection;
Function ItemAtPos(Pos : TPoint; Existing : Boolean) : Integer;
Function ItemRect(Index : Integer) : TRect;
Procedure SelectAll;
Ngoài ra, TXPListBox kế thừa các phương thức từ TCustomControl và lớp đi xuống sau:
TXPCustomControl:
Procedure UpdateSmoothDraw;
Function GetModified : Boolean;
Procedure ClearModified;
TXPProgressBar
TXPProgressBar là một biến thể của thành phần TProgressBar và cung cấp các phương thức riêng sau:
TXPProgressBar:
Procedure DoPostPaint;
Procedure StepIt;
Procedure StepBy(Delta : Integer);
Ngoài ra, TXPProgressBar kế thừa các phương thức từ TCustomControl và lớp đi xuống sau:
TXPCustomControl:
Procedure UpdateSmoothDraw;
Function GetModified : Boolean;
Procedure ClearModified;
TXPRadioButton
TXPRadioButton là một biến thể của thành phần TRadioButton . Nó kế thừa các phương thức từ TCustomControl và các lớp đi xuống sau:
TXPCustomControl:
Procedure UpdateSmoothDraw;
Function GetModified : Boolean;
Procedure ClearModified;
TWinXPCustomButtonControl:
Procedure CompulsoryClick;
Procedure ButtonMouseDown(X, Y : Integer);
Procedure ButtonMouseMove(X, Y : Integer);
Procedure ButtonMouseUp (X, Y : Integer);
Function GetControlState(Enabled, Pressed, Hot : Boolean) : TThemedButton; Virtual; Abstract;
TXPCheckControl:
Function GetChecked : Boolean;
Procedure SetChecked(Value : Boolean);
Procedure ReDrawCaption(AColor, AFontColor : TColor);
Procedure Toggle;
Function GetPartId : Integer;
Function GetStateBase : TThemedButton;
Function GetAlphaImage : TAlphaImage;
Function GetFrameCtrlStateFlags : Integer;
TXPRadioGroup
TXPRadioGroup là một biến thể của thành phần TRadioGroup . Nó kế thừa các phương thức từ TCustomControl và lớp đi xuống sau:
TXPCustomControl:
Procedure UpdateSmoothDraw;
Function GetModified : Boolean;
Procedure ClearModified;
TXPScrollbar
TXPScrollBar là một biến thể của thành phần TScrollBar và cung cấp các phương thức riêng sau:
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);
Ngoài ra, TXPScrollBar kế thừa các phương thức từ TCustomControl và lớp đi xuống sau:
TXPCustomControl:
Procedure UpdateSmoothDraw;
Function GetModified : Boolean;
Procedure ClearModified;
TXPSpeedButton
TXPSpeedButton là một biến thể của thành phần TSpeedButton và cung cấp các phương thức riêng sau:
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;
Ngoài ra, TXPSpeedButton kế thừa các phương thức từ TCustomControl và các lớp đi xuống sau:
TXPCustomControl:
Procedure UpdateSmoothDraw;
Function GetModified : Boolean;
Procedure ClearModified;
TXPCustomTransparentControl:
Procedure TransparentChanged;
TXPSpinEdit
TXPSpinEdit là một biến thể của thành phần TEdit và cung cấp các phương thức riêng sau:
TBaseXPSpinEdit:
Procedure InternalCheckAndSetValue;
Procedure InternalIncrementValue;
Procedure InternalDecrementValue;
Function IsValidChar(Key : Char) : Boolean;
Procedure SetButtonVisibility;
Function GetAutoWidth : Integer;
Ngoài ra, TXPSpinEdit kế thừa các phương thức từ TCustomControl và các lớp đi xuống sau:
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;
TXPSplitButton
TXPSplitButton là một biến thể của thành phần TButton có hỗ trợ menu pop-up và cung cấp các phương thức riêng sau:
TXPSplitButton:
Procedure AfterHidePopup;
Procedure BeforeShowPopup;
Ngoài ra, TXPSplitButton kế thừa các phương thức từ TCustomControl và các lớp đi xuống sau:
TXPCustomControl:
Procedure UpdateSmoothDraw;
Function GetModified : Boolean;
Procedure ClearModified;
TWinXPCustomButtonControl:
Procedure CompulsoryClick;
Procedure ButtonMouseDown(X, Y : Integer);
Procedure ButtonMouseMove(X, Y : Integer);
Procedure ButtonMouseUp (X, Y : Integer);
Function GetControlState(Enabled, Pressed, Hot : Boolean) : TThemedButton; Virtual;
TWinXPCustomButton:
Function GetShiftContentIfPressed : Boolean;
Procedure ReDrawCaption(ARect : TRect; AFontColor : TColor);
Procedure ReDrawInside (ARect : TRect; AFontColor : TColor);
TXPSplitter
TXPSplitter là một biến thể của thành phần TSplitter và kế thừa các phương thức của nó từ lớp chuẩn TSplitter .
TXPTrackBar
TXPTrackBar là một biến thể của thành phần TTrackBar và cung cấp các phương thức riêng sau:
TXPTrackBar:
Procedure DoChange;
Procedure ClearTicks;
Function GetTickColor : TColor;
Procedure SetTick(Value : Integer);
Ngoài ra, TXPTrackBar kế thừa các phương thức từ TCustomControl và lớp đi xuống sau:
TXPCustomControl:
Procedure UpdateSmoothDraw;
Function GetModified : Boolean;
Procedure ClearModified;
TXStatusBar
TXStatusBar là một biến thể của thành phần TStatusBar và kế thừa các phương thức của nó từ lớp chuẩn TStatusBar .
