Skip to content

pbAutoScroll - cDbScrollingClientArea

Determines whether auto-scrolling occurs as needed

Type: Property
Access: Read/Write
Data Type: Boolean
Parameters: None

Syntax

Property Boolean pbAutoScroll
Access Type Syntax
Read Access: Get pbAutoScroll to BooleanVariable
Write Access: Set pbAutoScroll to BooleanVariable/Value

Description

If True, auto scrolling occurs as needed.

Scrollbars will only appear as needed. If a container is sized such that it cannot show all child objects, scrollbars will appear. The class will determine the size required for the client area by checking the size and location of its child objects during activation. If the objects do not fit, a scrollbar appears. As you resize the container, the object will determine if scrollbars are needed or not and adjust things as needed. This is called "Auto Scrolling".

When piAutoScrollMinX and piAutoScrollMinY are zero and pbAutoScroll is True, the auto scrolling occurs based on the sizes and locations of the child objects. When piAutoScrollMinX and piAutoScrollMinY are zero and pbAutoScroll is False, auto scrolling never happens. When piAutoScrollMinX and piAutoScrollMinY are non-zero, they override this property for that scrolling axis.

Default is True.