Saltar para o conteúdo principal
Version: v20 BETA

Background and Border

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

NomeTipo de dadosValores possíveis
alternateFillstringqualquer valor css; "transparent"; "automatic"

Objectos suportados

List Box - Coluna List Box


Background Color / Fill Color

Defines the background color of an object.

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

NomeTipo de dadosValores possíveis
fillstringqualquer valor css; "transparent"; "automatic"

Objectos suportados

Hierarchical List - List Box - List Box Column - List Box Footer - Oval - Rectangle - Text Area

Veja também

Transparente


Expressão cor de fundo

Selection and collection type list boxes

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

NomeTipo de dadosValores possíveis
rowFillSourcestringAn expression returning a RGB color value

Objectos suportados

List Box - Coluna List Box


Estilo borda linha

Allows setting a standard style for the object border.

Gramática JSON

NomeTipo de dadosValores possíveis
borderStyletext"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

Describes dotted line type as a sequence of black and white points.

Gramática JSON

NomeTipo de dadosValores possíveis
strokeDashArraynumber array or stringEx. Ex. Ex. "6 1" or [6,1] for a sequence of 6 black point and 1 white point

Objectos suportados

Rectangle - Oval - Line


Esconder linhas em branco extras

Controls the display of extra blank rows added at the bottom of a list box object. By default, 4D adds such extra rows to fill the empty area:

You can remove these empty rows by selecting this option. The bottom of the list box object is then left blank:

Gramática JSON

NomeTipo de dadosValores possíveis
hideExtraBlankRowsbooleantrue, false

Objectos suportados

List Box


Cor da linha

Designates the color of the object's lines. The color can be specified by:

  • a color name - like "red"
  • a HEX value - like "#ff0000"
  • an RGB value - like "rgb(255,0,0)"

You can also set this property using the OBJECT SET RGB COLORS command.

Gramática JSON

NomeTipo de dadosValores possíveis
strokestringany css value, "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

Line - Oval - Rectangle


Largura da linha

Designa a espessura de uma linha.

Gramática JSON

NomeTipo de dadosValores possíveis
strokeWidthnumber0 for smallest width on a printed form, or any integer value < 20

Objectos suportados

Line - Oval - Rectangle


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.

The name of a Longint array must be entered. 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

Next you want to color the cells with negative values in dark orange. 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

NomeTipo de dadosValores possíveis
rowFillSourcestringO nome de um array longint.

Objectos suportados

List Box - List Box Column


Transparente

Sets the list box background to "Transparent". When set, any alternate background color or background color defined for the column is ignored.

Gramática JSON

NomeTipo de dadosValores possíveis
filltext"transparent"

Objectos suportados

List Box

Veja também

Background Color / Fill Color