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

TCustomLabel.HasMultiLine

Checks for CR or LF characters in the label text for the control.

Declaration

Source position: stdctrls.pp line 1570

protected function TCustomLabel.HasMultiLine: Boolean;

Function result

True when CR or LF characters are used in the text for the label.

Description

HasMultiLine is a Boolean function used to determine if CR (Carriage Return, Decimal 13) or LF (LineFeed, Decimal 10) characters are included in the text for the control. HasMultiLine calls GetLabelText to get the text stored in the label.

The return value is True when either character occurs in the text for the label.

HasMultiLine is used in the CalculateSize method to determine whether the DT_SINGLELINE flag is included in the drawing flags for the control.

See also

TCustomLabel.CalculateSize

  

Gets the height and width needed for the label text.

TCustomLabel.GetLabelText

  

Returns the string value in the Caption for the control.

DT_SINGLELINE

  

DrawText formatting: text is drawn in a single line, regardless of embedded line endings.


Version 3.2 Generated 2024-02-25 Home