Saltar para o conteúdo principal
Versão: v20 R4 BETA

Coordinates & Sizing

Altura automática da linha

This property is only available for list boxes with the following data sources:

  • collection ou entity selection,
  • array (não hierárquico).

A propriedade não está selecionada por padrão. When used, the height of every row in the column will automatically be calculated by 4D, and the column contents will be taken into account. When used for at least one column, the height of every row in the column will automatically be calculated by 4D, and the column contents will be taken into account.

nota

When resizing the form, if the "Grow" horizontal sizing property was assigned to the list box, the right-most column will be increased beyond its maximum width if necessary.

When this property is enabled, the height of every row is automatically calculated in order to make the cell contents entirely fit without being truncated (unless the Wordwrap option is disabled.

  • O cálculo da altura da linha tem em conta:

    • any content types (text, numerics, dates, times, pictures (calculation depends on the picture format), objects),
    • quaisquer tipos de controlo (entradas, caixas de verificação, listas, listas suspensas),
    • tipos, estilos e tamanhos de letra,
    • the Wordwrap option: if disabled, the height is based on the number of paragraphs (lines are truncated); if enabled, the height is based on number of lines (not truncated).
  • O cálculo da altura da linha ignora:

caution

Since it requires additional calculations at runtime, the automatic row height option could affect the scrolling fluidity of your list box, in particular when it contains a large number of rows.

Gramática JSON

NomeTipo de dadosValores possíveis
rowHeightAutobooleantrue, false

Objectos suportados

Coluna da List Box


Fundo

Coordenadas inferiores do objeto no formulário.

Gramática JSON

NomeTipo de dadosValores possíveis
bottomnumbermínimo: 0

Objectos suportados

4D View Pro Area - 4D Write Pro Area - Button - Button Grid - Check Box - Combo Box - Dropdown list - Group Box - Hierarchical List - Input - List Box - Line - List Box Column - Oval - Picture Button - Picture Pop up menu - Plug-in Area - Progress Indicators - Radio Button - Rectangle - Ruler - Spinner - Splitter - Static Picture - Stepper - Subform - Tab control - Text Area - Web Area


Direita

Coordenadas esquerda do objecto no formulário.

Gramática JSON

NomeTipo de dadosValores possíveis
leftnumbermínimo: 0

Objectos suportados

4D View Pro Area - 4D Write Pro Area - Button - Button Grid - Check Box - Combo Box - Dropdown list - Group Box - Hierarchical List - Input - List Box - Line - List Box Column - Oval - Picture Button - Picture Pop up menu - Plug-in Area - Progress Indicators - Radio Button - Ruler - Rectangle - Spinner - Splitter - Static Picture - Stepper - Subform - Tab control - Text Area - Web Area


Esquerda

Coordenada direita do objecto no formulário.

Gramática JSON

NomeTipo de dadosValores possíveis
direitanumbermínimo: 0

Objectos suportados

4D View Pro Area - 4D Write Pro Area - Button - Button Grid - Check Box - Combo Box - Dropdown list - Group Box - Hierarchical List - Input - List Box - Line - List Box Column - Oval - Picture Button - Picture Pop up menu - Plug-in Area - Progress Indicators - Radio Button - Ruler - Rectangle - Spinner - Splitter - Static Picture - Stepper - Subform - Tab control - Text Area - Web Area


Topo

Coordenada superior do objecto no formulário.

Gramática JSON

NomeTipo de dadosValores possíveis
topnumbermínimo: 0

Objectos suportados

4D View Pro Area - 4D Write Pro Area - Button - Button Grid - Check Box - Combo Box - Dropdown list - Group Box - Hierarchical List - Input - List Box - Line - List Box Column - Oval - Picture Button - Picture Pop up menu - Plug-in Area - Progress Indicators - Radio Button - Ruler - Rectangle - Spinner - Splitter - Static Picture - Stepper - Subform - Tab control - Text Area - Web Area


Retângulo

Histórico
VersãoMudanças
v19 R7Suporte para entradas e áreas de texto

Defines the corner roundness (in pixels) of objects of the rectangle type. By default, the radius value for rectangles is 0 pixels. You can change this property to draw rounded rectangles with custom shapes:

Minimum value is 0, in this case a standard non-rounded rectangle is drawn. Maximum value depends on the rectangle size (it cannot exceed half the size of the shortest rectangle side) and is calculated dynamically.

nota

With text areas and inputs:

  • the corner radius property is only available with "none", "solid", or "dotted" border line styles,
  • the corner roundness is drawn outside the area of the object (the object appears larger in the form but its width and height are not extended).

You can also set this property using the OBJECT Get corner radius and OBJECT SET CORNER RADIUS commands.

Gramática JSON

NomeTipo de dadosValores possíveis
borderRadiusintegermínimo: 0

Objectos suportados

Input - Rectangle - Text Area


Alto

Esta propriedade designa o tamanho vertical de um objeto.

Alguns objetos podem ter uma altura predefinida que não pode ser alterada.

Gramática JSON

NomeTipo de dadosValores possíveis
heightnumbermínimo: 0

Objectos suportados

4D View Pro Area - 4D Write Pro Area - Button - Button Grid - Check Box - Combo Box - Dropdown list - Group Box - Hierarchical List - Input - List Box - Line - List Box Column - Oval - Picture Button - Picture Pop up menu - Plug-in Area - Progress Indicators - Radio Button - Ruler - Rectangle - Spinner - Splitter - Static Picture - Stepper - Subform - Tab control - Text Area - Web Area


Largura

Esta propriedade designa o tamanho horizontal de um objeto.

  • Alguns objetos podem ter uma altura predefinida que não pode ser alterada.
  • If the Resizable property is used for a list box column, the user can also manually resize the column.
  • When resizing the form, if the "Grow" horizontal sizing property was assigned to the list box, the right-most column will be increased beyond its maximum width if necessary.

Gramática JSON

NomeTipo de dadosValores possíveis
widthnumbermínimo: 0

Objectos suportados

4D View Pro Area - 4D Write Pro Area - Button - Button Grid - Check Box - Combo Box - Dropdown list - Group Box - Hierarchical List - Input - Line - List Box - List Box Column - Oval - Picture Button - Picture Pop up menu - Plug-in Area - Progress Indicators - Radio Button - Ruler - Rectangle - Spinner - Splitter - Static Picture - Stepper - Subform - Tab control - Text Area - Web Area


Largura máxima

A largura máxima da coluna (em píxeis). The width of the column cannot be increased beyond this value when resizing the column or form.

When resizing the form, if the "Grow" horizontal sizing property was assigned to the list box, the right-most column will be increased beyond its maximum width if necessary.

Gramática JSON

NomeTipo de dadosValores possíveis
maxWidthnumbermínimo: 0

Objectos suportados

Coluna da List Box


Largura mínima

A largura mínima da coluna (em píxeis). A largura da coluna não pode ser reduzida abaixo deste valor quando se redimensiona a coluna ou o formulário.

When resizing the form, if the "Grow" horizontal sizing property was assigned to the list box, the right-most column will be increased beyond its maximum width if necessary.

Gramática JSON

NomeTipo de dadosValores possíveis
minWidthnumbermínimo: 0

Objectos suportados

Coluna da List Box


Array altura linha

Define a altura das linhas do list box (excluindo cabeçalhos e rodapés). By default, the row height is set according to the platform and the font size.

Gramática JSON

NomeTipo de dadosValores possíveis
rowHeightstringvalor css na unidade "em" ou "px" (por defeito)

Objectos suportados

List Box

Veja também

Array estilo linha


Array estilo linha

This property is used to specify the name of a row height array that you want to associate with the list box. Um array de altura de linha deve ser do tipo numérico (longint por defeito).

When a row height array is defined, each of its elements whose value is different from 0 (zero) is taken into account to determine the height of the corresponding row in the list box, based on the current Row Height unit.

Por exemplo, pode escrever:

ARRAY LONGINT(RowHeights;20)
RowHeights{5}:=3

Assuming that the unit of the rows is "lines," then the fifth row of the list box will have a height of three lines, while every other row will keep its default height.

  • The Row Height Array property is not taken into account for hierarchical list boxes.
  • For array-based list boxes, this property is available only if the Automatic Row Height option is not selected.

Gramática JSON

NomeTipo de dadosValores possíveis
rowHeightSourcestringNome de uma variável array 4D.

Objectos suportados

List Box

Veja também

Array altura linha


Barra rolagem horizontal

Define um preenchimento horizontal para as células. O valor é definido em pixeis (padrão = 0).

Gramática JSON

NomeTipo de dadosValores possíveis
horizontalPaddingnumberNúmero de pixéis (deve ser >=0)

Objectos suportados

List Box - List Box Column - Footers - Headers

Veja também

Dimensionamento vertical


Dimensionamento vertical

Define um preenchimento vertical para as células. O valor é definido em pixeis (padrão = 0).

Gramática JSON

NomeTipo de dadosValores possíveis
verticalPaddingnumberNúmero de pixéis (deve ser >=0)

Objectos suportados

List Box - List Box Column - Footers - Headers

Veja também

Barra rolagem horizontal