Table of Contents

TTMSFNCCustomControl.GetButtonBitmap Method

Returns the native OS button bitmap of the given size for use in custom drawing. Pass ADown, AFocused, and AEnabled to select the appropriate visual state.

API unit family: TMSFNCCustomControl Declaring type: TTMSFNCCustomControl

Syntax

function GetButtonBitmap(AWidth, AHeight: Single; ADown: Boolean = False; AFocused: Boolean = False; AEnabled: Boolean = True): TTMSFNCBitmapHelperClass; virtual;

Parameters

Name Description
AWidth Requested bitmap width.
AHeight Requested bitmap height.
ADown When True, returns the pressed-state bitmap.
AFocused When True, returns the focused-state bitmap.
AEnabled When False, returns the disabled-state bitmap.

Returns

The bitmap helper for the requested button state.