Skip to main content
Table of Contents

TTMSFNCControl.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: TTMSFNCControl Inherited from: TTMSFNCCustomControl

Syntax

FMX.TMSFNCCustomControl.hppPascalC++
function GetButtonBitmap(AWidth, AHeight: Single; ADown: Boolean = False; AFocused: Boolean = False; AEnabled: Boolean = True): TTMSFNCBitmapHelperClass; virtual;
virtual TTMSFNCBitmapHelperClass* __fastcall GetButtonBitmap(float AWidth, float AHeight, bool ADown = false, bool AFocused = false, bool AEnabled = true);

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.