[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] Reference for unit 'Forms' (#lcl)

THintWindow.CalcHintRect

Determines the rectangle required for the hint display.

Declaration

Source position: forms.pp line 1027

public function THintWindow.CalcHintRect(

  MaxWidth: Integer;

  const AHint: string;

  AData: pointer

):TRect; virtual;

Arguments

MaxWidth

  

Greater than zero, otherwise the full monitor width is used.

AHint

  

Hint text used to derive the display area.

AData

  

Pointer to additional data used to construct the hint text.

Function result

Display area needed for the hint display.

Description

CalcHintRect determines the display rectangle required for the hint display. CalcHintRect uses the larger of the values in the length of the hint text, and the width of the hint window.


Version 3.2 Generated 2024-02-25 Home