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

TCustomTabControl.MultiLine

Indicates whether the caption on a tab can have multiple lines of text.

Declaration

Source position: comctrls.pp line 491

public property TCustomTabControl.MultiLine : Boolean
  read GetMultiLine
  write SetMultiLine
  default False;

Description

MultiLine is a Boolean property which indicates whether the caption for a tab can be displayed as multiple lines of text. A multi-line caption may be needed when the length of the text exceeds the value in TabWidth, or the caption text contains embedded end-of-line character(s).

MultiLine contains True when the value nboMultiLine has been included in the Options for the tabbed control. The default value for the property is False and limits tab captions to a single line of text.

Changing the value for the property causes the Options property to be updated to reflect the new property value. When set to True, nboMultiLine is included in the Options property. Otherwise, the value is excluded from Options.

Remark: MultiLine (and the nboMultiLine option) may not be supported on all of the platforms where the LCL is hosted. Use the GetCapabilities method to determine whether a specific tab control option is supported for the platform.

See also

TCustomTabControl.Options

  

The set of Options enabled for the tabbed control.

TCustomTabControl.Pages

  

The list of captions for the page objects on the control.

TCustomTabControl.TabWidth

  

Width in pixels for the tabs on the control.

TCustomTabControl.GetCapabilities

  

Gets the set of platform-specific tab control options supported for the widgetset.

TCTabControlOption

  

Represents the LCL options available for TCustomTabControl.

TCTabControlOptions

  

Set type used to store values from the TCTabControlOption enumeration.

TCTabControlCapabilities

  

Set type used to store values from the TCTabControlCapability enumeration.


Version 4.0 Generated 2025-05-03 Home