Saltar al contenido principal
Versión: 20 R10 BETA

LISTBOX SET PROPERTY

LISTBOX SET PROPERTY ( {* ;} object ; property ; value )

ParámetrosTipoDescripción
*OperadorSi se especifica, object es un nombre de objeto (cadena). Si se omite, object es una variable.
objectanyNombre del objeto (si se especifica *) o Variable (si se omite *)
propertyIntegerList box or column property
valueInteger, TextValor de la propiedad

Descripción

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.

Si pasa el parámetro opcional *, indica que el parámetro object es un nombre de objeto (cadena). Si no pasa este parámetro, indica que el parámetro object es una variable. En este caso, se pasa una referencia a una variable en lugar de una cadena.

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:

ConstanteValorComentario
lk allow wordwrap14Propiedad Ajustar palabra
Se aplica a: columna *
Valores posibles:
lk no (0)
lk yes (1)
lk auto row height31Propiedad Alto de línea automático para list box de tipo array
Se aplica a: List box o columna
Valores posibles:
lk no (0)
lk yes (1)
lk background color expression22Propiedad Expresión color de fondo para los list box de tipo selección de registros, colección o selección de entidades
Se aplica a: list box o columna
lk cell horizontal padding36Propiedad Margen horizontal
Margen horizontal de celda en píxeles (mismo valor para las márgenes izquierda y derecha)
Se aplica a: list box, columna, encabezado, pie de página
lk cell vertical padding37Propiedad Margen vertical
Margen vertical de celda en píxeles (mismo valor para las márgenes superior e inferior)
Se aplica a: list box, columna, encabezado, pie de página
lk column max width26Propiedad Ancho Máximo
Se aplica a: Columna *
lk column min width25Propiedad Ancho mínimo
Se aplica a: Columna *
lk column resizable15Propiedad Redimensionable
Se aplica a: columna *
Valores posibles:
lk no (0)
lk yes (1)
lk detail form name19Propiedad Nombre formulario detallado para list box de tipo selección
Se aplica a: List box
lk display footer8Propiedad Mostrar pies de página
Se aplica a: list box
Valores posibles:
lk no (0): oculto
lk yes (1): mostrado
lk display header0Propiedad Mostrar encabezados
Se aplica a: list box
Valores posibles:
lk no (0): oculto
lk yes (1): mostrado
lk display type21Display Type property for numeric columns
Applies to: Column *
Possible values:
lk numeric format (0): displays values in numeric format
lk three states checkbox (1): displays values as three-state checkboxes
lk double click on row18Double-click on row property for selection type list box
Applies to: List box
Possible values:
lk do nothing (0): does not trigger any automatic action
lk edit record (1): displays corresponding record in read-write mode
lk display record (2): displays corresponding record in read-only mode
lk extra rows13Hide extra blank rows property
Applies to: List box
Possible values:
lk display (0)
lk hide (1)
lk font color expression23Font Color Expression property for record selection, collection or entity selection type list boxes
Applies to: List box or column
lk font style expression24Style Expression property for record selection, collection or entity selection type list boxes
Applies to: List box or column
lk hide selection highlight16Hide selection highlight property
Applies to: List box
Possible values:
lk no (0)
lk yes (1)
lk highlight set27Highlight Set property for selection type list box
Applies to: List box
lk hor scrollbar height3Altura en píxeles
lk meta expression34Meta Info Expression property for collection or entity selection type list boxes
Applies to: List box
lk movable rows35Movable Rows property for array type list box
Applies to: List box (excluding hierarchical mode)
Possible values:
lk no (0): Rows cannot be moved at runtime
lk yes (1): Rows can be moved at runtime (default)
lk multi style30Multi-style property
Applies to: Column *
Possible values:
lk no (0)
lk yes (1)
lk named selection28Named Selection property for selection type list box
Applies to: List box
lk resizing mode11Column Auto-Resizing property
Applies to: List box
Possible values:
lk manual (0)
lk automatic (2)
lk row height unit17Unit of Row Height property
Applies to: List box
Possible values:
lk lines (1)
lk pixels (0)
lk selection mode10Selection Mode property
Applies to: List box
Possible values:
lk none (0)
lk single (1)
lk multiple (2)
lk single click edit29Single-Click Edit property
Applies to: List box
Possible values:
lk no (0)
lk yes (1)
lk sortable20Sortable property
Applies to: List box
Possible values:
lk no (0)
lk yes (1)
lk truncate12Truncate with ellipsis property
Applies to: List box or column
Possible values:
lk without ellipsis (0)
lk with ellipsis (1)
lk ver scrollbar width5Ancho en píxeles
lk current item expression38Current item property
Applies to: List box (Collection / Entity selection)
lk current item pos expression39Current item position property
Applies to: List box (Collection / Entity selection)
lk selected items expression40Selected items property
Applies to: List box (Collection / Entity selection)

* 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.

Ejemplo 1

You want to make all columns of the "MyListbox" list box resizable:

 LISTBOX SET PROPERTY(*;"MyListbox";lk column resizable;lk yes) //Todas las columnas del list box "MyListbox" se establecen como redimensionables

Ejemplo 2

You want to set a maximum width for the column whose name is "ProductNumber":

 LISTBOX SET PROPERTY(*; "ProductNumber";lk column max width;200) //Esta columna tendrá un ancho máximo de 200

Ver también

List Box
LISTBOX Get property

Propiedades

Número de comando1440
Hilo seguro