AppWindow.EnableVerticalScroll Method (Typed) | |
Enable/disable a window vertical scroll bar in an application window.
Namespace:
XSharp.VO.SDK
Assembly:
XSharp.VOGUIClasses (in XSharp.VOGUIClasses.dll) Version: 2.19
Syntax VIRTUAL METHOD EnableVerticalScroll(
lEnable AS LOGIC
) AS VOID
public virtual void EnableVerticalScroll(
[DefaultParameterValueAttribute(true, 0)] bool lEnable
)
Request Example
View SourceParameters
- 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 |
---|
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:
1METHOD Init() CLASS TopAppWindow
2pwvs := SELF:EnableVerticalScroll()
3pwvs:Show()
4pwvs:Range := Range{1,200}
5pwvs:BlockSize := 25
See Also