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

TControl.GetScrolledClientRect

Get the visible part of the logical client area.

Declaration

Source position: controls.pp line 1270

protected function TControl.GetScrolledClientRect: TRect; virtual;

Function result

The scrolled ClientRect (TopLeft, BottomRight).

Description

Includes the ScrollOffset in a TScrollingWinControl Parent.

TControl: When the Parent is a TScrollingWinControl, the ClientRect is offset by its ScrollOffset. This Rect can be intersected with the visible ClientArea of the Parent, to get the really visible part of the control.

TWinControl: The visible ClientRect is offset by ScrollOffset, to reflect the visible part of the logical ClientRect.

See also

TControl.ClientRect

  

Size of the client area of the control.

TControl.GetScrolledClientRect

  

Get the visible part of the logical client area.

The latest version of this document can be found at lazarus-ccr.sourceforge.net.