Table of Contents

TTMSFNCEditorButtonAppearance Class

Defines the visual appearance of an editor button for each interactive state: normal, hover, down, selected, and disabled.

API unit family: TMSFNCEditorButton Inherits from: TPersistent

Syntax

TTMSFNCEditorButtonAppearance = class(TPersistent)

Properties

Name Description
DisabledFill The background fill style for the disabled button state.
DisabledFont The text font for the disabled button state.
DisabledStroke The border stroke style for the disabled button state.
DownFill The background fill style for the pressed (mouse-down) button state.
DownFont The text font for the pressed (mouse-down) button state.
DownStroke The border stroke style for the pressed (mouse-down) button state.
Fill The background fill style for the normal (default) button state.
Font The text font for the normal (default) button state.
HoverFill The background fill style for the hover (mouse-over) button state.
HoverFont The text font for the hover (mouse-over) button state.
HoverStroke The border stroke style for the hover (mouse-over) button state.
Rounding The corner rounding radius in pixels applied to the button border.
SelectedFill The background fill style for the selected button state.
SelectedFont The text font for the selected button state.
SelectedStroke The border stroke style for the selected button state.
SelectionLine When True, a selection indicator line is drawn along one edge of the button when it is selected.
SelectionLineWidth The thickness in pixels of the selection indicator line.
Stroke The border stroke style for the normal (default) button state.
TextAlignHorizontal The horizontal alignment of the button label text. Defaults to gtaCenter.
TextAlignVertical The vertical alignment of the button label text. Defaults to gtaCenter.

Events

Name Description
OnChanged Fires when any appearance property changes, allowing the owner button to repaint.