Skip to main content
Table of Contents

TTMSFNCDataGridProgressBarCellControlInfo.Compare Method

Returns True when AInfo describes the same control appearance, so a bitmap cached for one can be drawn for the other.

API unit family: TMSFNCDataGridCell Declaring type: TTMSFNCDataGridProgressBarCellControlInfo Inherited from: TTMSFNCDataGridCellControlInfo

Overloads

Overload 1

Returns True when AInfo describes the same control appearance, so a bitmap cached for one can be drawn for the other.

FMX.TMSFNCDataGridCell.hppPascalC++
function Compare(AInfo: TTMSFNCDataGridCellControlInfo): Boolean; virtual;
virtual bool __fastcall Compare(TTMSFNCDataGridCellControlInfo* AInfo);

Remarks

Override together with Assign and CopyInstance when a descendant adds fields.

Parameters

Name Description
AInfo Control info to compare with; must not be nil.

Returns

True when Type, Width, Height, Text, Caption, Focused, Tag, and ExtraHash are all equal.

Overload 2

Returns True when AInfo represents the same cache key as this instance, including the Value position.

FMX.TMSFNCDataGridCell.hppPascalC++
function Compare(AInfo: TTMSFNCDataGridCellControlInfo): Boolean; override;
virtual bool __fastcall Compare(TTMSFNCDataGridCellControlInfo* AInfo);

Parameters

Name Description
AInfo Control info snapshot to compare against.

Returns

True when the inherited comparison matches and, if AInfo is also a progress-bar info, the Value positions are equal.