Click or drag to resize

ChildAppWindow.EnableVerticalScroll Method

X#
Enable/disable a window vertical scroll bar in an application window.

Namespace:  VO
Assembly:  VOGUIClasses (in VOGUIClasses.dll) Version: 2.19
Syntax
 VIRTUAL METHOD EnableVerticalScroll(
	lEnable
) AS USUAL CLIPPER
Request Example View Source

Parameters

lEnable (Optional)
Type: Usual
TRUE enables the WindowVerticalScrollBar object; FALSE disables it. The default is TRUE.

Return Value

Type: Usual
If the scroll bar is enabled, a WindowVerticalScrollBar object is returned; if disabled, NULL_OBJECT is returned.
Remarks
Tip Tip
This is the only valid way to create a window vertical scroll bar.
A WindowVerticalScrollBar object is a special type of scroll bar that is aligned along the right side of a window's canvas area. It resizes itself according to the size of the window that owns it. After creating a WindowVerticalScrollBar object, it should then be shown and its range set.
Examples
This example enables a WindowVerticalScrollBar object and sets its range to be 1-200, with a block size of 25:
X#
1METHOD Init() CLASS TopAppWindow
2pwvs := SELF:EnableVerticalScroll()
3pwvs:Show()
4pwvs:Range := Range{1,200}
5pwvs:BlockSize := 25
See Also