Table of Contents

TTMSFNCPassLock.OnBeforeDrawButtonValue Event

Occurs before a button value is drawn.

API unit family: TMSFNCPassLock Declaring type: TTMSFNCPassLock Inherited from: TTMSFNCCustomPassLock

Syntax

OnBeforeDrawButtonValue: TTMSFNCPassLockBeforeDrawButtonValueEvent;

Parameters

Name Description
Sender The object that triggered the event.
AGraphics The graphics context used for drawing.
ARect The value drawing rectangle.
AValue The button value being drawn.
AHorizontalTextAlign Adjusts the horizontal text alignment.
AVerticalTextAlign Adjusts the vertical text alignment.
AWordWrap Set to True to wrap the value text; set to False to keep it on one line.
AAllow Set to False to skip drawing the value.
ADefaultDraw Set to False to replace the default value drawing.