4D v14.3LISTBOX Get rows height |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v14.3
LISTBOX Get rows height
|
LISTBOX Get rows height ( {* ;} object {; unit} ) -> Function result | ||||||||
Parameter | Type | Description | ||||||
* | Operator |
![]() |
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) | |||||
unit | Longint |
![]() |
Unit of height value: 0 or omitted = pixels, 1 = lines | |||||
Function result | Integer |
![]() |
Row height | |||||
The LISTBOX Get rows height command returns the current row height for the list box 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 pass a variable reference instead of a string. For more information about object names, refer to the Object Properties section.
By default, if you omit the unit parameter, the row height returned is expressed in pixels. To set another unit, in the unit parameter you can pass one of the following constants, found in the List Box theme:
Constant | Type | Value | Comment |
Listbox lines | Longint | 1 | Height designates a number of lines. 4D calculates the height of a line according to the font |
Listbox pixels | Longint | 0 | Height is a number of pixels (default). |
Note: For more information about calculating the height of rows, refer to the Design Reference manual.
Product: 4D
Theme: List Box
Number:
836
Created: 4D 2004
Renamed: 4D v12
Modified: 4D v13
4D Language Reference ( 4D v14 R3)
4D Language Reference ( 4D v14 R2)
4D Language Reference ( 4D v13.5)
4D Language Reference ( 4D v14.3)
4D Language Reference ( 4D v14 R4)
Inherited from : LISTBOX Get rows height ( 4D v12.4)