[Overview][Constants][Types][Classes][Procedures and functions][Index] |
Gets the height and width needed for the label text.
Source position: stdctrls.pp line 1574
protected procedure TCustomLabel.CalculateSize( |
MaxWidth: Integer; |
var NeededWidth: Integer; |
var NeededHeight: Integer |
); |
MaxWidth |
|
Maximum width for the text rectangle in the label. |
NeededWidth |
|
Width needed for the text. |
NeededHeight |
|
Height needed for the text. |
Calculates the size for the label text using the formatting defined in related property values.
NeededWidth and NeededHeight are variable parameters updated in the method to reflect the values needed after applying DrawText flags to the label text. The DrawText flags include constants which represent the following properties:
The following constants are also used in the DrawText flags:
Version 3.2 | Generated 2024-02-25 | Home |