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

TCustomPanel.WordWrap

Indicates if the Caption can be word wrapped when painted.

Declaration

Source position: extctrls.pp line 1117

protected property TCustomPanel.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

TCustomPanel.Paint

  

Paints the panel including the bevels and caption defined for the control.

TTextStyle

  

The Style of the Text to be drawn in a rectangle.

TControl.Invalidate

  

Causes a delayed Repaint of the control by marking its visible area of the control as invalid.


Version 3.2 Generated 2024-02-25 Home