AppWindow.EnableHorizontalScroll Method (Typed) | |
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
public virtual void EnableHorizontalScroll(
[DefaultParameterValueAttribute(true, 0)] bool lEnable
)
Request Example
View SourceParameters
- 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 |
---|
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:
1METHOD Init() CLASS MyAppWindow
2owhs := SELF:EnableHorizontalScroll(TRUE)
3owhs:Show()
4owhs:Range := Range{1,80}
5owhs:BlockSize := 8
See Also