Fundo e margem
Cor de fundo alternado
Allows setting a different background color for odd-numbered rows/columns in a list box. By default, Automatic is selected: the column uses the alternate background color set at the list box level.
Gramática JSON
Nome | Tipo de dados | Valores possíveis |
---|---|---|
alternateFill | string | qualquer valor css; "transparent"; "automatic" |
Objectos suportados
Cor de fundo / Cor de preenchimento
Define a cor de fundo de um objeto.
In the case of a list box, by default Automatic is selected: the column uses the background color set at the list box level.
Gramática JSON
Nome | Tipo de dados | Valores possíveis |
---|---|---|
fill | string | qualquer valor css; "transparent"; "automatic" |
Objectos suportados
Hierarchical List - List Box - List Box Column - List Box Footer - Oval - Rectangle - Text Area
Veja também
Expressão cor de fundo
List box de tipo coleção e seleção de entidades
An expression or a variable (array variables cannot be used) to apply a custom background color to each row of the list box. The expression or variable will be evaluated for each row displayed and must return a RGB color value. For more information, refer to the description of the OBJECT SET RGB COLORS
command in the 4D Language Reference manual.
You can also set this property using the LISTBOX SET PROPERTY
command with lk background color expression
constant.
With collection or entity selection type list boxes, this property can also be set using a Meta Info Expression.
Gramática JSON
Nome | Tipo de dados | Valores possíveis |
---|---|---|
rowFillSource | string | Uma expressão que retorna um valor de cor RGB |
Objectos suportados
Estilo borda linha
Permite definir um estilo padrão para o contorno do objeto.
Gramática JSON
Nome | Tipo de dados | Valores possíveis |
---|---|---|
borderStyle | text | "system", "none", "solid", "dotted", "raised", "sunken", "double" |
Objectos suportados
4D View Pro Area - 4D Write Pro areas - Buttons - Button Grid - Hierarchical List - Input - List Box - Picture Button - Picture Pop-up Menu - Plug-in Area - Progress Indicator - Ruler - Spinner - Stepper - Subform - Text Area - Web Area
Tipo de linha pontilhada
Descreve o tipo de linha pontilhada como uma sequência de pontos pretos e brancos.
Gramática JSON
Nome | Tipo de dados | Valores possíveis |
---|---|---|
strokeDashArray | arrays numéricos ou strings | Ex. Ex. Ex. "6 1" or [6,1] for a sequence of 6 black point and 1 white point |
Objectos suportados
Esconder linhas em branco extras
Controls the display of extra blank rows added at the bottom of a list box object. Por defeito, 4D adiciona essas linhas extra para preencher a área vazia:
Pode remover estas linhas vazias selecionando esta opção. A parte inferior do objeto do list box é deixada em branco:
Gramática JSON
Nome | Tipo de dados | Valores possíveis |
---|---|---|
hideExtraBlankRows | boolean | true, false |
Objectos suportados
Cor da linha
Designa a cor das linhas do objeto. A cor pode ser especificada por:
- um nome de cor - como "red"
- um valor HEX - como "#ff0000"
- um valor RGB - como "rgb(255,0,0)"
You can also set this property using the OBJECT SET RGB COLORS
command.
Gramática JSON
Nome | Tipo de dados | Valores possíveis |
---|---|---|
stroke | string | um valor css, "transparent", "automatic" |
This property is also available for text based objects, in which case it designates both the font color and the object's lines, see Font color.
Objectos suportados
Largura da linha
Designa a espessura de uma linha.
Gramática JSON
Nome | Tipo de dados | Valores possíveis |
---|---|---|
strokeWidth | number | 0 para a largura mais pequena num formulário impresso, ou qualquer valor inteiro < 20 |
Objectos suportados
Array controle linha
List box de tipo array
The name of an array to apply a custom background color to each row of the list box or column.
Deve ser introduzido o nome de um array Longint. Each element of this array corresponds to a row of the list box (if applied to the list box) or to a cell of the column (if applied to a column), so the array must be the same size as the array associated with the column. You can use the constants of the SET RGB COLORS theme. If you want the cell to inherit the background color defined at the higher level, pass the value -255 to the corresponding array element.
For example, given a list box where the rows have an alternating gray/light gray color, defined in the properties of the list box. A background color array has also been set for the list box in order to switch the color of rows where at least one value is negative to light orange:
<>_BgndColors{$i}:=0x00FFD0B0 // laranja
<>_BgndColors{$i}:=-255 // valor por defeito
De seguida, deve colorir as células com valores negativos a laranja-escuro. To do this, you set a background color array for each column, for example <>_BgndColor_1
, <>_BgndColor_2
and <>_BgndColor_3
. The values of these arrays have priority over the ones set in the list box properties as well as those of the general background color array:
<>_BgndColorsCol_3{2}:=0x00FF8000 // laranja escura
<>_BgndColorsCol_2{5}:=0x00FF8000
<>_BgndColorsCol_1{9}:=0x00FF8000
<>_BgndColorsCol_1{16}:=0x00FF8000
You can get the same result using the LISTBOX SET ROW FONT STYLE
and LISTBOX SET ROW COLOR
commands. They have the advantage of letting you skip having to predefine style/color arrays for the columns: instead they are created dynamically by the commands.
Gramática JSON
Nome | Tipo de dados | Valores possíveis |
---|---|---|
rowFillSource | string | O nome de um array longint. |
Objectos suportados
Transparente
Define o fundo do list box como "Transparent". When set, any alternate background color or background color defined for the column is ignored.
Gramática JSON
Nome | Tipo de dados | Valores possíveis |
---|---|---|
fill | text | "transparent" |