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

# TControlScrollBar.ClientSizeWithoutBar

Calculates the size of the associated control when the scroll bar is not Visible.

## Declaration

Source position: forms.pp line 155

`public function TControlScrollBar.ClientSizeWithoutBar: Integer;`

## Function result

Size for the client area when the scroll bar is hidden.

## Description

ClientSizeWithoutBar is an Integer function used to calculate the client area for the associated control when the scroll bar is Visible. The return value contains the calculated value from ClientSize. If the scroll bar is Visible, additional spacing (for the SM_SWSCROLLBARSPACING system metric) between the scroll bar and its associated control is added to the return value.

ClientSizeWithoutBar is used in the implementation of the ComputeScrollbars and GetPreferredSizeClientFrame methods in TScrollingWinControl.

## See also

TControlScrollBar.ClientSize |  | Gets the size for the scroll bar based on the client area in the associated control.
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.
TScrollingWinControl.ComputeScrollbars |  | Updates Page, AutoRange, IsScrollBarVisible, and returns True when changed.
TScrollingWinControl.GetPreferredSizeClientFrame |  | Calculates the size of the client area for the control excluding visible scroll bars.