Click or drag to resize

AppWindow.EnableHorizontalScroll Method (Typed)

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

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

Parameters

lEnable
Type: Logic
TRUE enables the horizontal scroll bar; FALSE disables it. The default is TRUE.

Return Value

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