4D v14.3

OBJECT GET SCROLLBAR

Home

 
4D v14.3
OBJECT GET SCROLLBAR

OBJECT GET SCROLLBAR 


 

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

The OBJECT GET SCROLLBAR command is used to find out the displayed/hidden status of the horizontal and vertical scrollbars of the object or group of objects designated by object

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 field or a variable. In this case, you pass a field or variable reference (object field or variable only) instead of a string.

In the horizontal and vertical parameters, you can pass Boolean or longint type variables:

  • When you pass Boolean variables, the value returned reflects the current state of the scrollbar:
    • If the scrollbar has been defined as hidden, the parameter receives False,
    • If the scrollbar has been defined as displayed, the parameter receives True,
    • If the scrollbar has been set to automatic mode, the parameter receives either True or False depending on the current display state of the object.
  • When you pass longint variables, the value returned reflects the visibility defined for the scrollbar:
    • If the scrollbar has been defined as hidden, the parameter receives 0,
    • If the scrollbar has been defined as displayed, the parameter receives 1,
    • If the scrollbar has been set to automatic mode, the parameter receives 2.

This command can be used with the following form objects:

  • Picture or text object fields and variables
  • List boxes,
  • Hierarchical lists,
  • Subforms.

For more information, refer to the description of the OBJECT SET SCROLLBAR command.

 
PROPERTIES 

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

 
HISTORY 

New
Created: 4D v12
Modified: 4D v14

 
SEE ALSO 

OBJECT SET SCROLLBAR

 
ARTICLE USAGE

4D Language Reference ( 4D v14.3)

Inherited from : OBJECT GET SCROLLBAR ( 4D v12.4)