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

Footers

Exibir rodapés

This property is used to display or hide list box column footers. Existe um rodapé por coluna; cada rodapé é configurado separadamente.

Gramática JSON

NomeTipo de dadosValores possíveis
showFootersbooleantrue, false

Objectos suportados

List Box


Alto

This property is used to set the row height for a list box footer in pixels or text lines (when displayed). Ambos os tipos de unidades podem ser utilizados no mesmo list box:

  • Pixel - the height value is applied directly to the row concerned, regardless of the font size contained in the columns. Se um tipo de letra for demasiado grande, o texto é truncado. Além disso, as imagens são truncadas ou redimensionadas conforme o seu formato.

  • Line - the height is calculated while taking into account the font size of the row concerned.

    • Se mais de um tamanho for definido, 4D usa o maior. Por exemplo, se uma linha contém "Verdana 18", "Geneva 12" e "Arial 9", 4D usa "Verdana 18" para determinar a altura da linha (por exemplo, 25 pixeis). Esta altura é depois multiplicada pelo número de linhas definido.
    • Este cálculo não tem em conta o tamanho das imagens nem os estilos aplicados aos tipos de letra.
    • In macOS, the row height may be incorrect if the user enters characters that are not available in the selected font. When this occurs, a substitute font is used, which may cause variations in size.

      This property can also be set dynamically using the LISTBOX SET FOOTERS HEIGHT command.

Conversion of units: When you switch from one unit to the other, 4D converts them automatically and displays the result in the Property List. For example, if the font used is "Lucida grande 24", a height of "1 line" is converted to "30 pixels" and a height of "60 pixels" is converted to "2 lines".

Note that converting back and forth may lead to an end result that is different from the starting value due to the automatic calculations made by 4D. Este facto é ilustrado nas sequências seguintes:

(font Arial 18): 52 pixels -> 2 lines -> 40 pixels (font Arial 12): 3 pixels -> 0.4 line rounded up to 1 line -> 19 pixels

JSON Exemplo

 "List Box": {
"type": "listbox",
"showFooters": true,
"footerHeight": "44px",
...
}

Gramática JSON

NomeTipo de dadosValores possíveis
footerHeightstringdécimales positives +px | em

Objectos suportados

List Box

Veja também

Cabeçalhos - Rodapés List box