Drop-in editor button control with full appearance customization, toggle behavior, bitmap support, and group-based mutual exclusion.
API unit family: TMSFNCEditorButton
Inherits from: TTMSFNCCustomEditorButton
Syntax
TTMSFNCEditorButton = class(TTMSFNCCustomEditorButton)
Properties
Name
Description
Appearance
The visual appearance settings for all interactive button states. (inherited from TTMSFNCCustomEditorButton)
Bitmap
The bitmap displayed in the normal button state. (inherited from TTMSFNCCustomEditorButton)
BitmapMargins
The margins between the button edges and the displayed bitmap. (inherited from TTMSFNCCustomEditorButton)
ButtonPosition
The visual grouping position of the button relative to adjacent buttons, affecting which corners are rounded. (inherited from TTMSFNCCustomEditorButton)
DisabledBitmap
The bitmap displayed when the button is in the disabled state. (inherited from TTMSFNCCustomEditorButton)
DownBitmap
The bitmap displayed when the button is in the pressed (mouse-down) state. (inherited from TTMSFNCCustomEditorButton)
GroupName
The group name used for mutual exclusion among buttons in the same group; only one button per group can be selected at a time. (inherited from TTMSFNCCustomEditorButton)
ModalResult
The modal result value set on the owning form when this button is clicked inside a modal dialog. (inherited from TTMSFNCCustomEditorButton)
Selected
When True, the button is in its selected state. (inherited from TTMSFNCCustomEditorButton)
Text
The label text displayed on the button. (inherited from TTMSFNCCustomEditorButton)
Toggle
When True, the button toggles between selected and unselected states on each click. (inherited from TTMSFNCCustomEditorButton)
Methods
Name
Description
BeginUpdate
Suspends visual updates while multiple appearance or property changes are made in bulk. (inherited from TTMSFNCCustomEditorButton)
EndUpdate
Resumes visual updates after a BeginUpdate call and repaints the control. (inherited from TTMSFNCCustomEditorButton)
Events
Name
Description
OnButtonClick
Fires when the button is clicked, providing the sender for button-specific handling. (inherited from TTMSFNCCustomEditorButton)
OnHandleAcceleratorKey
Fires when the button's keyboard accelerator key is triggered. (inherited from TTMSFNCCustomEditorButton)