4D v16.3

OBJECT SET SCROLLBAR

Home

 
4D v16.3
OBJECT SET SCROLLBAR

OBJECT SET SCROLLBAR 


 

OBJECT SET SCROLLBAR ( {* ;} object ; horizontal ; vertical ) 
Parameter Type   Description
Operator in If specified, object is an object name (string) If omitted, object is a variable
object  Form object in Object name (if * is specified) or Variable (if * is omitted)
horizontal  Boolean, Longint in Visibility of horizontal scrollbar
vertical  Boolean, Longint in Visibility of vertical scrollbar

The OBJECT SET SCROLLBAR 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.

In the horizontal and vertical parameters, you pass values indicating whether the corresponding scrollbars should be displayed. You can pass either Boolean values (True=displayed, False=hidden), or numeric values (0=hidden, 1=displayed, 2=automatic mode). Using numeric values gives you access to the automatic mode, where scrollbars are only displayed when necessary.

The following table indicates the values you can pass in the horizontal and vertical parameters for objects that accept scrollbars (automatic mode is not available for all objects):

Objects with scrollbarsHide scrollbarShow scrollbarAutomatic mode
Text object fields and variablesFalse or 0True or 1not available
Picture object fields and variablesFalse or 0True or 12
List boxesFalse or 0True or 12
Hierarchical listsFalse or 0True or 12
SubformsFalse or 0True or 1not available

By default, scrollbars are displayed.

Note: For more information about the automatic mode, refer to Scroll bars.



See also 

LISTBOX Get information
LISTBOX SET GRID
OBJECT GET SCROLLBAR
OBJECT SET VISIBLE

 
PROPERTIES 

Product: 4D
Theme: Objects (Forms)
Number: 843

 
HISTORY 

Modified: 4D v11 SQL
Renamed: 4D v12
Modified: 4D v14

 
ARTICLE USAGE

4D Language Reference ( 4D v16)
4D Language Reference ( 4D v16.1)
4D Language Reference ( 4D v16.2)
4D Language Reference ( 4D v16.3)