Sign in Join
FPDoc Onlineexperiment

TCustomPanel.WordWrap property

Member of TCustomPanelprotectedIn unit ExtCtrls

Indicates if the Caption can be word wrapped when painted.

Declaration

pascal
property WordWrap: Boolean read FWordwrap write SetWordwrap default False;

Description

WordWrap is a Boolean property which indicates if the text in the Caption property can be word wrapped into multiple lines when painting the control. The default value for the property is False, and indicates that word wrapping is not used for the caption. Changing the value in WordWrap causes the Invalidate method to be called to repaint the control.

WordWrap is used in the Paint method to initialize properties in the TTextStyle argument used to render the text rectangle for the caption to its Canvas.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.