[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] |
Calculates the size of the associated control when the scroll bar is Visible.
Source position: forms.pp line 160
public function TControlScrollBar.ClientSizeWithBar: Integer; |
Size for the client area after adjusting for a visible scroll bar.
ClientSizeWithBar 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 not Visible, additional spacing (for the SM_SWSCROLLBARSPACING system metric) between the scroll bar and its associated control is removed from the return value.
ClientSizeWithBar is used in the implementation of the ComputeScrollbars method in TScrollingWinControl when the Range for the scroll bar would exceed the space available on the control, and in the GetPreferredSizeClientFrame method.
|
Gets the size for the scroll bar based on the client area in the associated control. |
|
|
Hides the scroll bar when False (default True). |
|
|
The size of the logical display area on the associated control for the scroll bar orientation. |
|
|
Updates Page, AutoRange, IsScrollBarVisible, and returns True when changed. |
|
|
Calculates the size of the client area for the control excluding visible scroll bars. |
Version 3.2 | Generated 2024-02-25 | Home |