This is the legacy 4D documentation web site. Documentations are progressively being moved to developer.4d.com |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v19.8
LISTBOX SET PROPERTY
|
LISTBOX SET PROPERTY ( {* ;} object ; property ; value ) | ||||||||
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) | |||||
property | Longint |
![]() |
List box or column property | |||||
value | Longint, String |
![]() |
Value of property | |||||
The LISTBOX SET PROPERTY command sets the value for the property of the list box or list box column specified 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.
Note: If the list box or list box column specified using the object and * parameters does not exist, the command does nothing and no error is triggered.
In the property and value parameters, you indicate, respectively, the property to set and its new value. You can use the following constants found in the “List Box” theme:
Constant | Type | Value | Comment |
lk allow wordwrap | Longint | 14 | Wordwrap property Applies to: Column* Possible values:
|
lk auto row height | Longint | 31 | Automatic row height property for array type list box
|
lk background color expression | String | 22 | Background Color Expression property for selection type list box Applies to: List box or column |
lk column max width | Longint | 26 | Maximum Width property Applies to: Column* |
lk column min width | Longint | 25 | Minimum Width property Applies to: Column* |
lk column resizable | Longint | 15 | Resizable property Applies to: Column* Possible values:
|
lk detail form name | String | 19 | Detail Form Name property for selection type list box Applies to: List box |
lk display type | Longint | 21 | Display Type property for numeric columns Applies to: Column* Possible values:
|
lk double click on row | Longint | 18 | Double-click on row property for selection type list box Applies to: List box Possible values:
|
lk extra rows | Longint | 13 | Hide extra blank rows property Applies to: List box Possible values:
|
lk font color expression | String | 23 | Font Color Expression property for selection type list box Applies to: List box or column |
lk font style expression | String | 24 | Style Expression property for selection type list box Applies to: List box or column |
lk hide selection highlight | Longint | 16 | Hide selection highlight property Applies to: List box Possible values:
|
lk highlight set | String | 27 | Highlight Set property for selection type list box Applies to: List box |
lk movable rows | Longint | 35 | Movable Rows property for array type list box
|
lk multi style | Longint | 30 | Multi-style property Applies to: Column* Possible values:
|
lk named selection | String | 28 | Named Selection property for selection type list box Applies to: List box |
lk resizing mode | Longint | 11 | Column Auto-Resizing property Applies to: List box Possible values:
|
lk row height unit | Longint | 17 | Unit of Row Height property Applies to: List box Possible values:
|
lk selection mode | Longint | 10 | Selection Mode property Applies to: List box Possible values:
|
lk single click edit | Longint | 29 | Single-Click Edit property Applies to: List box Possible values:
|
lk sortable | Longint | 20 | Sortable property Applies to: List box Possible values:
|
lk truncate | Longint | 12 | Truncate with ellipsis property Applies to: List box or column Possible values:
|
*These properties can only be applied to list box columns; however, if you pass a list box as parameter, LISTBOX SET PROPERTY applies the property to each column of the list box.
Note: If you pass a property that does not exist, or that is not available for the specified list box or column, for example lk font style expression in the case of an array type list box, the command does nothing and no error is triggered.
You want to make all columns of the "MyListbox" list box resizable:
LISTBOX SET PROPERTY(*;"MyListbox";lk column resizable;lk yes) //All columns of the "MyListbox" list box are set as resizable
You want to set a maximum width for the column whose name is "ProductNumber":
LISTBOX SET PROPERTY(*;"ProductNumber";lk column max width;200) //This column will have a maximum width of 200
Product: 4D
Theme: List Box
Number:
1440
Created: 4D v16 R2
Modified: 4D v16 R5
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)