This is the legacy 4D documentation web site. Documentations are progressively being moved to developer.4d.com

Home

 
4D v19.8
LISTBOX Get auto row height

LISTBOX Get auto row height 


 

LISTBOX Get auto row height ( {* ;} object ; selector {; unit} ) -> Function result 
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)
selector  Longint in Height value to get: lk row min height or lk row max height
unit  Longint in Unit of height value: 0 = pixels, 1 = lines
Function result  Longint in Selected row height value

The LISTBOX Get auto row height command returns the current minimum or maximum row height value set for the list box object designated using the object and * parameters.

The current minimum or maximum row height value can be set either in the Property list (see Automatic Row Height) or in the current process using the LISTBOX SET AUTO ROW HEIGHT command.

Note: This command can be used with array-based, non-hierarchical list boxes only.

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 pass a variable reference instead of a string. For more information about object names, refer to the Object Properties section.

In selector, pass the type of value to get. You can use one of the following constants from the List Box theme:

Constant Type Value
lk row max height Longint 33
lk row min height Longint 32

By default, the command returns the value in pixels. You can pass one of the following constants from the List Box theme in the unit parameter to define the unit to use:

Constant Type Value Comment
lk lines Longint 1 Height is expressed as a number of lines. 4D calculates the height of a line according to the font.
lk pixels Longint 0 Height is expressed as a number of pixels (default).

Example  

You want to get the maximum number of lines for a list box row:

 C_LONGINT(vhMax)
 vhMax:=LISTBOX Get auto row height(*;"LB";lk row max height;lk lines)



See also 

LISTBOX Get row height
LISTBOX Get rows height
LISTBOX SET AUTO ROW HEIGHT

 
PROPERTIES 

Product: 4D
Theme: List Box
Number: 1502

 
PAGE CONTENTS 
 
HISTORY 

Created: 4D v16 R5

 
ARTICLE USAGE

4D Language Reference ( 4D v19)
4D Language Reference ( 4D v19.1)
4D Language Reference ( 4D v19.4)
4D Language Reference ( 4D v19.5)
4D Language Reference ( 4D v19.6)
4D Language Reference ( 4D v19.7)
4D Language Reference ( 4D v19.8)