TTMSFNCHintWindow.CalcHintRect Method
Calculates the VCL hint bounding rectangle for the given hint text and maximum width.
API unit family: TMSFNCHint
Declaring type: TTMSFNCHintWindow
Overloads
Overload 1
Calculates the VCL hint bounding rectangle for the given hint text and maximum width.
function CalcHintRect(MaxWidth: Integer; const AHint: string; AData: TCustomData): TRect; override;
Parameters
| Name | Description |
|---|---|
MaxWidth |
Maximum width in pixels for the hint window. |
AHint |
The hint text to measure. |
AData |
Optional custom data passed by the hint system. |
Returns
The calculated bounding rectangle.
Overload 2
Calculates the hint bounding rectangle for the given hint text and maximum width.
function CalcHintRect(MaxWidth: Integer; const AHint: String; AData: pointer): TRect; override;
Parameters
| Name | Description |
|---|---|
MaxWidth |
Maximum width in pixels for the hint window. |
AHint |
The hint text to measure. |
AData |
Optional custom data pointer passed by the hint system. |
Returns
The calculated bounding rectangle.