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

# TScrollingWinControl.GetLogicalClientRect

Returns the logical size of the client area on the control.

## Declaration

Source position: forms.pp line 185

`protected function TScrollingWinControl.GetLogicalClientRect: TRect; override;`

## Function result

TRect instance with the client rectangle adjusted for scroll bars visible on the control.

## Description

GetLogicalClientRect is an overridden method in TScrollingWinControl; it re-implements the method introduced in the ancestor class. The return value contains the value in the ClientRect property. It ensures that the Right and Bottom members in the return value are updated (when needed) to reflect the current Range values for the respective visible scroll bars.

## See also

TControlScrollBar.Visible |  | Hides the scroll bar when False (default True).
TControlScrollBar.Range |  | The size of the logical display area on the associated control for the scroll bar orientation.
TControl.GetLogicalClientRect |  | Logical client area, can be bigger than the visible client area.
TControl.ClientRect |  | Size of the client area for the control.