Click or drag to resize

AppWindow.EnableVerticalScroll Method (Typed)

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

Namespace:  XSharp.VO.SDK
Assembly:  XSharp.VOGUIClasses (in XSharp.VOGUIClasses.dll) Version: 2.21
Syntax
 VIRTUAL METHOD EnableVerticalScroll(
	 lEnable AS LOGIC
) AS VOID
Request Example View Source

Parameters

lEnable
Type: Logic
TRUE enables the WindowVerticalScrollBar object; FALSE disables it. The default is TRUE.

Return Value

Type: 
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