Table of Contents

TTMSFNCCustomSwitchBeforeDrawSwitchButtonEvent Event Type

Event fired before the switch thumb is drawn.

API unit family: TMSFNCSwitch

Parameters

Name Description
Sender Switch that raised the event.
AGraphics Graphics context used for drawing.
ARect Switch thumb rectangle.
ASwitchState Current switch state.
AAllow Set to False to skip all thumb drawing.
ADefaultDraw Set to False to replace the default thumb drawing.