ChildAppWindow.EnableHorizontalScroll Method | |
Enable/disable a window horizontal scroll bar in an application window.
Namespace:
VO
Assembly:
VOGUIClasses (in VOGUIClasses.dll) Version: 2.21
Syntax VIRTUAL METHOD EnableHorizontalScroll(
lEnable
) AS USUAL CLIPPER
[ClipperCallingConventionAttribute(new string[] { ... })]
public override Usual EnableHorizontalScroll(
Usual lEnable = default
)
Request Example
View SourceParameters
- lEnable (Optional)
- Type: Usual
TRUE enables the horizontal scroll bar; FALSE disables it. The default is TRUE.
Return Value
Type:
Usual
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