Table of Contents

TTMSFNCBadgeAppearance Class

Defines fill, stroke, and font for a badge in normal, hover, down, and disabled states.

API unit family: TMSFNCBadge Inherits from: TPersistent

Syntax

TTMSFNCBadgeAppearance = class(TPersistent)

Properties

Name Description
DisabledFill Fill style applied when the badge is disabled.
DisabledFont Font applied when the badge is disabled.
DisabledStroke Stroke style applied when the badge is disabled.
DownFill Fill style applied when the badge is pressed.
DownFont Font applied when the badge is pressed.
DownStroke Stroke style applied when the badge is pressed.
Fill Default fill style for the badge background.
Font Default font for badge text.
HoverFill Fill style applied when the badge is hovered.
HoverFont Font applied when the badge is hovered.
HoverStroke Stroke style applied when the badge is hovered.
Rounding Corner rounding radius for the badge background in pixels.
Stroke Default stroke style for the badge border.
TextAlignHorizontal Horizontal alignment of the badge text within its bounds.
TextAlignVertical Vertical alignment of the badge text within its bounds.

Events

Name Description
OnChanged Fires when any appearance property changes. Wire this internally to schedule a badge repaint.
OnFontChanged Fires specifically when the font-related appearance properties change, allowing the badge to update its text metrics.