Types

MLSkin type reference

The 52 types used by control properties and events: every enumeration value, the members of sub-property classes and the meaning of event parameters.

Most types are declared in uMlSkinIntf.pas; a few live in their control's own unit (shown next to the name). Add the unit to your uses clause to use a type in code. Every linked type in the “Type” column of a property table is described on this page.

Basic types

TMlResIDuMlSkinIntf.pas

TMlResID = type string;

An image resource ID — a string under the hood. Put the name of an image registered in TMlSkinRes / the resource manager (for example MlSkinDropdownMenu); the control looks the image up by that name when it paints. It is a distinct type so the Object Inspector can attach a drop-down editor: open it and pick from the loaded resources instead of typing the name.

Used by 59

BackgroundTMlSkinAlphaFormBackgroundImageTMlSkinBorderPanel TMlSkinCalloutPanel TMlSkinCircleShape TMlSkinColorComboBox TMlSkinComboBox TMlSkinCountBar and 15 controls in allBar_BackgroundTMlSkinProgressBarBar_ProgressTMlSkinProgressBarBorderEffectHotTMlSkinBorderPanel TMlSkinColorComboBox TMlSkinComboBox TMlSkinListBox TMlSkinMemoExBorderEffectNormalTMlSkinBorderPanel TMlSkinColorComboBox TMlSkinComboBox TMlSkinListBox TMlSkinMemoExBorderHotTMlSkinComboBoxEx TMlSkinDatetimePicker TMlSkinEdit TMlSkinNCEdit TMlSkinPasswordEdit TMlSkinSearchEdit and 7 controls in allBorderNormalTMlSkinComboBoxEx TMlSkinDatetimePicker TMlSkinEdit TMlSkinNCEdit TMlSkinPasswordEdit TMlSkinSearchEdit and 7 controls in allCloseImageTMlSkinSystemButtonCollapseIconTMlSkinExpandBoxCustomPictureTMlSkinFormDropArrowHotTMlSkinComboBoxDropArrowNormalTMlSkinComboBoxDropdownMenuImageTMlSkinColorButtonExpandIconTMlSkinExpandBoxHotImageTMlSkinColorButtonIcon_FailueTMlSkinPopupMessageIcon_InformationTMlSkinPopupMessageIcon_SuccessTMlSkinPopupMessageImageTMlFormLayerBorder TMlSkinColorButton TMlSkinSizeGrip TMlSkinToolButtonItemHotImageTMlSkinIconButtonListLogoTMlSkinTitleBarMaximizeImageTMlSkinSystemButtonMenu_CheckTMlSkinMenuMenu_RadioTMlSkinMenuMenu_SubArrowTMlSkinMenuMenu_bkTMlSkinMenuMenu_hilightTMlSkinMenuMinimizeImageTMlSkinSystemButtonMlResIDTMlSkinSvgAnimate TMlSkinSvgImagePasswordCharTMlSkinPasswordEditPictureTMlSkinCircleShape TMlSkinNCImagePicturesTMlSkinCheckBox TMlSkinGroupControls TMlSkinRadioBoxRestoresizeImageTMlSkinSystemButtonScrollbar_arrowdown_downTMlSkinScrollBarScrollbar_arrowdown_highlightTMlSkinScrollBarScrollbar_arrowdown_normalTMlSkinScrollBarScrollbar_arrowleft_downTMlSkinScrollBarScrollbar_arrowleft_highlightTMlSkinScrollBarScrollbar_arrowleft_normalTMlSkinScrollBarScrollbar_arrowright_downTMlSkinScrollBarScrollbar_arrowright_highlightTMlSkinScrollBarScrollbar_arrowright_normalTMlSkinScrollBarScrollbar_arrowup_downTMlSkinScrollBarScrollbar_arrowup_highlightTMlSkinScrollBarScrollbar_arrowup_normalTMlSkinScrollBarScrollbar_bar_downTMlSkinScrollBarScrollbar_bar_highlightTMlSkinScrollBarScrollbar_bar_normalTMlSkinScrollBarScrollbar_bkgTMlSkinScrollBarScrollbar_horz_bkgTMlSkinScrollBarScrollbar_horzbar_downTMlSkinScrollBarScrollbar_horzbar_highlightTMlSkinScrollBarScrollbar_horzbar_normalTMlSkinScrollBarTabDownPictureTMlSkinPageControlTabHotPictureTMlSkinPageControlTabNormalPictureTMlSkinPageControlThumbTMlHLSTrackBarTitleIconTMlSkinExpandBox

TMlSkinImageuMlSkinIntf.pas

TMlSkinImage = class(TBitmap32)
  public
    constructor Create; override;
    procedure CopyPropertiesTo(Dst: TCustomBitmap32); override;
    property Tag: Integer read FTag write SetTag;
    property IsFromSVG: Boolean read FIsFromSVG write SetIsFromSVG;
end;

The image object MLSkin uses everywhere, derived from Graphics32's TBitmap32 (32-bit with alpha). The resource manager returns it and controls cache it; bitmaps you receive in custom-paint events such as OnCustomPaint can be drawn on exactly like any TBitmap32.

Value / memberDescription
TagA spare integer for your own data; the library does not use it.
IsFromSVGWhether the image was rendered from an SVG. The resource manager uses it to decide whether to re-render the SVG at the new size or scale a bitmap when the DPI changes.

TmlColoruMlSkinIntf.pas

TmlColor = type cardinal;

A 32-bit ARGB color (unsigned integer) for reading and writing bitmap pixels directly. It is not the same as the VCL TColor ($00BBGGRR, no alpha); convert between them with routines such as Color32.

Enumerations and sets

TEllipsisPositionuMlSkinIntf.pas

TEllipsisPosition = (epNone, epPathEllipsis, epEndEllipsis, epWordEllipsis);

Where the ellipsis goes when text does not fit. It maps onto the Windows DrawText ellipsis flags (the constant array MlEllipsis in the same unit does the mapping).

Value / memberDescription
epNoneNo ellipsis; overflowing text is clipped.
epPathEllipsisEllipsis in the middle, keeping the start and the end — good for file paths (DT_PATH_ELLIPSIS).
epEndEllipsisEllipsis at the end (DT_END_ELLIPSIS).
epWordEllipsisCut at a whole word, then add the ellipsis (DT_WORD_ELLIPSIS).

Used byEllipsisPositionTMlSkinLabel TMlSkinNCLabel TMlURLButton

TGradientAlignuMlSkinIntf.pas

TGradientAlign = (gaCenter, gaLeft, gaRight);

Where the gradient starts. Used together with GradientSize (the gradient length as a percentage of the control). uMlSkinLine.pas declares a type with the same name and values for TMlSkinLine.

Value / memberDescription
gaCenterSymmetric, from the middle out to both ends.
gaLeftStarts at the left end (the top when vertical).
gaRightStarts at the right end (the bottom when vertical).

Used byGradientAlignTMlSkinBorderPanel TMlSkinColorComboBox TMlSkinComboBox TMlSkinGroupControls TMlSkinLine TMlSkinListBox and 9 controls in all

TMlTextKinduMlSkinIntf.pas

TMlTextKind = (tkAll, tkEN, tkNumInt, tkNumReal, tkENandNum);

What an edit accepts. Disallowed characters are filtered out as they are typed.

Value / memberDescription
tkAllAnything.
tkENLatin letters only.
tkNumIntIntegers only.
tkNumRealNumbers, with decimal point and minus sign.
tkENandNumLetters and digits.

Used byTextKindTMlSkinDatetimePicker TMlSkinEdit TMlSkinNCEdit

TMlSwitchButtonCaptionAlignuMlSkinIntf.pas

TMlSwitchButtonCaptionAlign = (sbcaLeft, sbcaRigth);

Which side of the switch the caption goes. Note that the right-hand value is spelled sbcaRigth in the source (kept for compatibility with existing .dfm files).

Value / memberDescription
sbcaLeftCaption on the left of the switch.
sbcaRigthCaption on the right of the switch.

Used byCaptionAlignTMlSkinSwitchButton

TMlCorneruMlSkinIntf.pas

TMlCorner = (TopLeft, TopRight, BottomLeft, BottomRight);

One corner of a rectangle; the element type of the TMlCorners set.

Value / memberDescription
TopLeftTop-left.
TopRightTop-right.
BottomLeftBottom-left.
BottomRightBottom-right.

TMlCornersuMlSkinIntf.pas

TMlCorners = set of TMlCorner;

Which corners are rounded, in any combination. For the leftmost button of a button group, round only the left corners: Corners := [TopLeft, BottomLeft].

TSideuMlSkinIntf.pas

TSide = (sdLeft, sdTop, sdRight, sdBottom);

One edge of a rectangle; the element type of the TSides set.

Value / memberDescription
sdLeftLeft.
sdTopTop.
sdRightRight.
sdBottomBottom.

TMlSkinStyleuMlSkinIntf.pas

TMlSkinStyle = (ssColor, ssPicture);

How a form skin is colored. This is the main skin switch: change it, then set the matching color or image.

Value / memberDescription
ssColorSolid-color skin using color properties such as Color / TitlerColor.
ssPicturePicture skin using the background in CustomPicture, laid out according to FillStyle.

Used byStyleTMlSkinForm

TMlFillStyleuMlSkinIntf.pas

TMlFillStyle = (mfsBlur, mfsTile, mfsStretch, mfs9Block);

How the background image fills the form with a picture skin (ssPicture).

Value / memberDescription
mfsBlurThe image sits at the top-left with its right and bottom edges faded out, and the rest of the form is filled with the image's average color, so a small image shows no hard edge. The default.
mfsTileTiled.
mfsStretchStretched over the whole form.
mfs9BlockNine-slice: the four corners keep their shape while the edges and centre stretch — for backgrounds with rounded or decorated borders.

Used byFillStyleTMlSkinForm

TMlPngFillTypeuMlSkinIntf.pas

TMlPngFillType = (ftNormal, ftTile, ftAutoStretch, ftCenter, ftStretch, ftGradient);

How a background image is laid out inside a control (BackgroundFillType on panels and similar controls).

Value / memberDescription
ftNormalOriginal size at the top-left.
ftTileTiled.
ftAutoStretchStretched to the control size (width and height independently).
ftCenterOriginal size, centred.
ftStretchStretched to fill.
ftGradientNo image: paint a gradient instead (direction, colors and anchor come from the Gradient* properties).

Used byBackgroundFillTypeTMlSkinBorderPanel TMlSkinCalloutPanel TMlSkinColorComboBox TMlSkinComboBox TMlSkinGroupControls TMlSkinListBox and 12 controls in all

TMlSkinCustomComboBoxStyleuMlSkinIntf.pas

TMlSkinCustomComboBoxStyle = (csDropDown, csDropDownList);

Whether a combo box can be typed into.

Value / memberDescription
csDropDownEditable: pick from the list or type text directly. The default.
csDropDownListList only; no typing.

Used byStyleTMlSkinComboBox TMlSkinComboBoxEx

TMlColorBoxStylesRecuMlSkinIntf.pas

TMlColorBoxStylesRec = (mlcbStandardColors, mlcbExtendedColors,
  mlcbSystemColors, mlcbIncludeNone, mlcbIncludeDefault, mlcbCustomColor, mlcbPrettyNames);

Which entries a color combo box lists; the element type of the TMlColorBoxStyles set. The values match the VCL TColorBox.Style.

Value / memberDescription
mlcbStandardColorsThe 16 standard colors (clBlack, clRed …).
mlcbExtendedColorsThe extended colors (clMoneyGreen, clSkyBlue, clCream, clMedGray).
mlcbSystemColorsSystem colors (clBtnFace, clWindow and other theme-dependent colors).
mlcbIncludeNoneInclude clNone.
mlcbIncludeDefaultInclude clDefault.
mlcbCustomColorAdd a “Custom…” entry that opens the color dialog.
mlcbPrettyNamesShow friendly names without the cl prefix (Red rather than clRed).

TMlColorBoxStylesuMlSkinIntf.pas

TMlColorBoxStyles = set of TMlColorBoxStylesRec;

What the color combo box lists; combine as needed, for example ExStyle := [mlcbStandardColors, mlcbCustomColor, mlcbPrettyNames].

Used byExStyleTMlSkinColorComboBox

TNCBoderSideKinduMlSkinIntf.pas

TNCBoderSideKind = (skTitle, skLeft, skRight, skBottom);

A segment of the form's non-client frame, used internally by TMlSkinForm when it paints the title bar and window border. You rarely need it in your own code.

Value / memberDescription
skTitleTitle bar.
skLeftLeft border.
skRightRight border.
skBottomBottom border.

TMlEditTipsPositionuMlSkinEditTips.pas

TMlEditTipsPosition = (etpRight, etpLeft, etpTop, etpBottom);

Which side of the edit the red validation tip (Tips.Show) appears on. Set it through Tips.Position, together with Tips.Spacing — the gap between tip and edit (default 5, in 96-DPI pixels, scaled for DPI at run time).

Value / memberDescription
etpRightOn the right, vertically centred on the edit. The default.
etpLeftOn the left.
etpTopAbove, aligned with the edit's left edge.
etpBottomBelow, aligned with the edit's left edge.

Used byTMlSkinEdit.Tips.Position, TMlSkinNCEdit.Tips.Position

TGroupBoxFrameStyleuMlSkinBoxCtrls.pas

TGroupBoxFrameStyle = (fsLine, fsBox, fsCard);

The frame style of a group box.

Value / memberDescription
fsLineOnly a divider line after the caption (fading from LineStartColor to LineStopColor). The default.
fsBoxA full rectangle.
fsCardCard: caption above at the left, then an anti-aliased rounded card with its border in LineStartColor and fill in CardColor (clNone draws the border only).

Used byFrameStyleTMlSkinGroupBox

TMlTitleBarButtonKinduMlSkinTitleBar.pas

TMlTitleBarButtonKind = (tbkMinimize, tbkMaximize, tbkRestore, tbkClose, tbkCustom);

The kind of button on a TMlSkinTitleBar; tells you in OnDrawButton which button is being drawn.

Value / memberDescription
tbkMinimizeMinimize.
tbkMaximizeMaximize (while the form is not maximized).
tbkRestoreRestore (what the maximize button becomes once the form is maximized).
tbkCloseClose.
tbkCustomA custom button from the Buttons collection; the event's Index says which one.

TMlTitleBarButtonStateuMlSkinTitleBar.pas

TMlTitleBarButtonState = (tbsNormal, tbsHot, tbsDown);

The current state of a TMlSkinTitleBar button.

Value / memberDescription
tbsNormalNormal.
tbsHotHovered.
tbsDownPressed (mouse held down and still over the button).

TNCButtonStateuMlSkinNCButton.pas

TNCButtonState = (bsNormal, bsHot, bsPressed);

The current state of a title-bar button (TMlSkinNCButton, TMlSkinSystemButton), passed to OnDrawButton.

Value / memberDescription
bsNormalNormal.
bsHotHovered.
bsPressedPressed.

TSystemButtonKinduMlSkinNCButton.pas

TSystemButtonKind = (bkClose, bkMinimize, bkMaximize);

Which system button a TMlSkinSystemButton acts as; clicking it performs that window command.

Value / memberDescription
bkCloseClose. The default.
bkMinimizeMinimize.
bkMaximizeMaximize / restore.

Used byKindTMlSkinSystemButton

Sub-property classes (expandable in the Object Inspector)

TPngPicturesuMlSkinIntf.pas

TPngPictures = class(TPersistent)
  public
    procedure Assign(Source: TPersistent); override;
    constructor Create;
    destructor Destroy; override;
    function GetNormalImage(var AImage: TMlSkinImage): Boolean;
    function GetHotImage(var AImage: TMlSkinImage): Boolean;
    function GetPressedImage(var AImage: TMlSkinImage): Boolean;
    function GetDisableImage(var AImage: TMlSkinImage): Boolean;
    function GetSingleWidth: Integer;
    function GetSingleHeight: Integer;
    property SourceImage: TMlSkinImage read FSourceImage;
    procedure Lock;
    procedure UnLock;
  published
    property Active: Boolean read FActive write SetActive;
    property MultiLineMode: Boolean read FMultiLineMode write SetMultiLineMode default False;
    property Image: TMlResID read FImage write SetImage;
    property Normal: Integer read FNormal write SetNormal;
    property Hot: Integer read FHot write SetHot;
    property Disable: Integer read FDisable write SetDisable;
    property Count: Integer read FCount write SetCount;
    property Pressed: Integer read FPressed write SetPressed;
    property SourceSize: TSize read GetSourceSize;
    property PicturesChanged: TNotifyEvent read FPicturesChanged write SetPicturesChanged;
end;

Button images where several states sit side by side in one picture. Image names a strip that is cut into Count equal frames; Normal / Hot / Pressed / Disable pick the frame (0-based) for each state. At high DPI the matching scaled resource is used automatically. Changing Pressed or MultiLineMode at run time does not repaint by itself — call the control's Invalidate afterwards.

Value / memberDescription
ActiveWhether this image set is used. When off the control draws no image (text only, or a Flat vector style).
MultiLineModeFrame layout: False side by side (default), True stacked vertically.
ImageResource ID (TMlResID) of the strip.
CountNumber of frames in the strip, default 3.
NormalFrame for the normal state, default 0.
HotFrame for the hot state, default 1.
PressedFrame for the pressed state, default 2.
DisableFrame for the disabled state, default 0 (shared with normal).
SourceSizeRead-only: width and height of the whole source image.
PicturesChangedChange notification hooked by the owning control to repaint; normally leave it alone.
GetNormalImage / GetHotImage / GetPressedImage / GetDisableImageCopy the frame for that state into the TMlSkinImage you pass; returns True on success. Use them when drawing yourself.
GetSingleWidth / GetSingleHeightWidth / height of one frame, in pixels.
Lock / UnLockWrap several property changes in Lock … UnLock to suppress the repaint notifications in between.
Used by 10

ButtonImageTMlSkinTabset TMlSkinToolbarButtonLeftTMlSkinImageSliderButtonPicturesTMlSkinMessageBoxStyleButtonRightTMlSkinImageSliderCloseButtonTMlSkinTabsetImageOFFTMlSkinSwitchButtonImageONTMlSkinSwitchButtonLayersTMlSkinButton TMlSkinImageButton TMlSkinToolButtonPictureTMlSkinNCButton TMlSkinSystemButtonPicturesTMlSkinButton TMlSkinImageButton TMlSkinToolButton

TPngPicturesExuMlSkinIntf.pas

TPngPicturesEx = class(TPngPictures)
end;

A descendant of TPngPictures with no added members; use it exactly the same way.

TMlLightClassuMlSkinIntf.pas

TMlLightClass = class(TPersistent)
  public
    constructor Create;
    procedure Assign(Source: TPersistent); override;
  published
    property BlurRadius: Integer read FBlurRadius write SetBlurRadius default 1;
    property Active: Boolean read FActive write SetActive default False;
    property Color: TColor read FColor write SetColor default $FFFFFE;
    property OnChanged: TNotifyEvent read FOnChanged write SetOnChanged;
end;

A text glow (outer halo) that keeps text readable on dark or picture backgrounds. The Light, CaptionLight and MessageLight properties of the controls all use it.

Value / memberDescription
ActiveTurns the glow on; off by default.
ColorGlow color, near-white by default ($FFFFFE).
BlurRadiusBlur radius in pixels — larger means a wider halo. Default 1.
OnChangedChange notification hooked by the owning control to repaint.

Used byCaptionLightTMlSkinGroupBox TMlSkinMessageBoxStyle TMlSkinPageControlLightTMlSkinCheckBox TMlSkinLabel TMlSkinNCLabel TMlSkinRadioBox TMlSkinToolButton TMlURLButtonMessageLightTMlSkinMessageBoxStyle

TMlTextObjuMlSkinIntf.pas

TMlTextObj = class(TPersistent)
  public
    constructor Create;
    destructor Destroy; override;
    procedure Assign(Source: TPersistent); override;
  published
    property Light: TMlLightClass read FLight write SetLight;
    property Text: string read FText write SetText;
    property Visible: Boolean read FVisible write SetVisible default True;
    property OnChanged: TNotifyEvent read FOnChanged write SetOnChanged;
end;

A piece of text with a visibility switch and a glow effect. The toolbar's Text property uses it.

Value / memberDescription
TextThe text.
VisibleWhether it is shown; on by default.
LightGlow effect (TMlLightClass).
OnChangedChange notification hooked by the owning control to repaint.

TMlCaptionuMlSkinIntf.pas

TMlCaption = class(TMlTextObj)
  public
    constructor Create;
    destructor Destroy; override;
    procedure Assign(Source: TPersistent); override;
  published
    property OffsetX: Integer read FOffsetX write SetOffsetX default 0;
    property OffsetY: Integer read FOffsetY write SetOffsetY default 0;
    property Font: TFont read FFont write SetFont;
end;

A TMlTextObj with its own font and position offset — the text shown inside progress bars and circular progress controls (a percentage, for example).

Value / memberDescription
FontFont of the text.
OffsetXHorizontal offset from the default position in pixels; positive moves right.
OffsetYVertical offset from the default position in pixels; positive moves down.

Used byCaptionTMlSkinCircleProgress TMlSkinProgressBar

TMlOffsetuMlSkinIntf.pas

TMlOffset = class(TPersistent)
  public
    constructor Create;
    destructor Destroy; override;
  published
    property X: Integer read FX write SetX;
    property Y: Integer read FY write SetY;
    property OnChanged: TNotifyEvent read FOnChanged write SetOnChanged;
end;

An X / Y offset pair in pixels for nudging text, close buttons and other elements inside a control.

Value / memberDescription
XHorizontal offset; positive moves right.
YVertical offset; positive moves down.
OnChangedChange notification hooked by the owning control to repaint.

Used byCaptionOffsetTMlSkinNCButtonCloseButtonOffsetTMlSkinTabsetOffsetTMlSkinGroupControls

TMlTitleBarButtonuMlSkinTitleBar.pas

TMlTitleBarButton = class(TCollectionItem)
  public
    constructor Create(Collection: TCollection); override;
    procedure Assign(Source: TPersistent); override;
  published
    property Image: TMlResID read FImage write SetImage;
    property Hint: string read FHint write FHint;
    property Visible: Boolean read FVisible write SetVisible default True;
    property Tag: Integer read FTag write FTag default 0;
    property OnClick: TNotifyEvent read FOnClick write FOnClick;
end;

One custom button in TMlSkinTitleBar.Buttons, placed to the left of the minimize button.

Value / memberDescription
ImageResource ID of the button icon.
HintTooltip text (requires the title bar's ShowHint).
VisibleWhether the button is shown; hidden buttons take no space.
TagA spare integer, handy for telling buttons apart in a shared click handler.
OnClickFires when the button is clicked.

TMlTitleBarButtonsuMlSkinTitleBar.pas

TMlTitleBarButtons = class(TOwnedCollection)
  public
    function Add: TMlTitleBarButton;
    property Items[Index: Integer]: TMlTitleBarButton read GetItem; default;
end;

The custom-button collection of TMlSkinTitleBar. Add buttons at design time through Buttons in the Object Inspector, or at run time with Add; access them with Items[i] (the default property, so Buttons[i] works).

Used byButtonsTMlSkinTitleBar

Event types

TMlDrawSkinItemEventuMlSkinIntf.pas

TMlDrawSkinItemEvent = procedure(Sender: TObject; Cnvs: TCanvas; Index:
  Integer; ItemWidth, ItemHeight: Integer; TxtRect: TRect; State: TOwnerDrawState) of object;

Owner-draw event for list items. Cnvs is the canvas, Index the item, ItemWidth / ItemHeight its size, TxtRect the text area and State the selection / focus state (odSelected, odFocused …).

Used byOnComboBoxDrawItemTMlSkinComboBoxOnDrawItemTMlSkinListBoxOnListBoxDrawItemTMlSkinComboBox

TMlNCButtonDrawEventuMlSkinNCButton.pas

TMlNCButtonDrawEvent = procedure(Sender: TObject; Canvas: TBitmap32; const R: TRect;

Custom drawing for a title-bar button. Canvas is the whole title-bar buffer, R the button area and State its current state. Set Handled to True to skip the default image and caption drawing.

Used byOnDrawButtonTMlSkinNCButton

TMlTitleBarDrawButtonEventuMlSkinTitleBar.pas

TMlTitleBarDrawButtonEvent = procedure(Sender: TObject; Bitmap: TBitmap32; Kind: TMlTitleBarButtonKind;

Button drawing event of TMlSkinTitleBar, fired before each button is painted. Bitmap is the whole title-bar buffer, Kind the button kind, Index the custom button's position in Buttons (-1 for system buttons), R the button area and State its state. With Handled := True the default background and glyph are skipped; to change only the background, paint it and then call DrawButtonGlyph for the stock —/□/X lines.

Used byOnDrawButtonTMlSkinTitleBar

Low-level types (custom drawing and control internals)

TDynMlSkinImageuMlSkinIntf.pas

TDynMlSkinImage = array of TMlSkinImage;

A dynamic array of TMlSkinImage, used to cache a set of frames. Release it with FreeDynImg, which frees every element and empties the array.

TImgArray9BlockuMlSkinIntf.pas

TImgArray9Block = array[0..2, 0..2] of TMlSkinImage;

A 3×3 array of TMlSkinImage holding a nine-slice (corners, edges, centre). Release it with FreeArray9BlockImg.

TPngArrayuMlSkinIntf.pas

TPngArray = array of TPngImage;

A dynamic array of TPngImage; release it with FreeDynPng.

TPngArray9BlockuMlSkinIntf.pas

TPngArray9Block = array[0..2, 0..2] of TPngImage;

A 3×3 nine-slice of TPngImage; release it with FreeArray9BlockPng.

TPngArray3BlockuMlSkinIntf.pas

TPngArray3Block = array[0..2] of TPngImage;

A three-piece slice of TPngImage (left / middle / right or top / middle / bottom) for images that stretch in one direction. Release it with FreeArray3BlockPng.

TmlColorRecuMlSkinIntf.pas

TmlColorRec = packed record
    case cardinal of
      0:
        (Color: cardinal);
      2:
        (HiWord, LoWord: Word);
      3:
        (B, G, R, A: Byte);
end;

A variant record that splits a 32-bit color into bytes: read or write the whole Color, or the B, G, R, A components separately (memory order BGRA, as in Windows 32-bit bitmaps).

TmlColorRecBoruMlSkinIntf.pas

TmlColorRecBor = packed record
    case cardinal of
      0:
        (Color: cardinal);
      2:
        (HiWord, LoWord: Word);
      3:
        (R, G, B, A: Byte);
end;

Same as TmlColorRec but with RGBA component order, matching the byte layout of a Delphi TColor.

TmlColorArrayuMlSkinIntf.pas

TmlColorArray = array[0..0] of TmlColor;

An open-ended array of TmlColor; use it through PmlColorArray to index a block of pixel memory (the declared upper bound is 0, so range checking must be off).

TRGBQuadArrayuMlSkinIntf.pas

TRGBQuadArray = array[0..$EFFFFFF] of TRGBQuad;

A huge array of TRGBQuad, used through pRGBQuadArray to walk the scan lines of a 32-bit bitmap (e.g. pRGBQuadArray(Bmp.ScanLine[y])[x]).

TIntArrayuMlSkinIntf.pas

TIntArray = array[0..0] of Integer;

An open-ended integer array, used through PIntArray to index a block of integers.

TMonitorInfouMlSkinIntf.pas

TMonitorInfo = record
    cbSize: DWORD;
    rcMonitor: TRect;
    rcWork: TRect;
    dwFlags: DWORD;
end;

The monitor-info structure for Windows GetMonitorInfo: rcMonitor is the whole screen, rcWork the work area without the taskbar. It is declared here for compatibility with older Delphi versions.

TMlCBButtonXuMlSkinIntf.pas

TMlCBButtonX = record
    R: TRect;
    MouseIn: Boolean;
    Down: Boolean;
end;

Used inside the combo box to track its drop-down button: area R, whether the mouse is over it (MouseIn) and whether it is pressed (Down).

TMlCBItemuMlSkinIntf.pas

TMlCBItem = record
    R: TRect;
    State: TOwnerDrawState;
end;

Used inside the combo box to keep the current item's area R and draw state State.

ControlsBrowse all 79 controls by category