TTMSFNCDataGridProgressBarCellControlInfo.Compare Method
Returns True when
AInfodescribes 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
AInfodescribes the same control appearance, so a bitmap cached for one can be drawn for the other.
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
TruewhenAInforepresents the same cache key as this instance, including theValueposition.
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.