version 11 (Modified)
SET SCROLLBAR VISIBLE ({*; }object; horizontal; vertical)
Parameter | Type | Description | |
* | If specified, object is an object name (string) | ||
If omitted, object is a variable | |||
object | Form object | Object name (if * is specified) or | |
Variable (if * is omitted) | |||
horizontal | Boolean | True = show, False = hide | |
vertical | Boolean | True = show, False = hide |
Description
The SET SCROLLBAR VISIBLE command allows you to display or hide the horizontal and/or vertical scrollbars in the object set using the object and * parameters.
If you pass the optional * parameter, you indicate that the object parameter is an object name (string). If you do not pass this parameter, you indicate that the object parameter is a variable. In this case, you do not pass a string, but a variable reference. For more information about object names, refer to the Object Properties section.
This command is used with the following form objects:
list boxes,
scrollable areas,
hierachical lists,
subforms.
Pass the Boolean values in horizontal and vertical indicating whether the corresponding scrollbars should be displayed (True) or hidden (False). The scrollbars are displayed by default.
Note: Objects of the scrollable area type do not have horizontal scrollbars. Since the horizontal parameter is mandatory, you must still pass it in this case; however, it will be ignored.
See Also
Get listbox information, SET VISIBLE, SHOW LISTBOX GRID.