Saltar para o conteúdo principal
Versão: v18

Aparência

Botão predefinido

The default button property designates the button that gets the initial focus at runtime when no button of the form has the Focusable property.

Só pode haver um botão predefinido por página de formulário.

In addition, on macOS, the default button property modifies the button's appearance in order to indicate a "recommended choice" to the user. O botão padrão pode diferir do botão selecionado. Os botões predefinidos têm um aspeto azul específico no macOS:

O botão tem de ter uma altura padrão para obter o aspeto de botão predefinido.

On Windows, the concept of "recommended choice" is not supported: only the focused button has a different appearance at runtime. However, in the 4D form editor, the default button is represented with a blue outline:

Gramática JSON

NomeTipo de dadosValores possíveis
defaultButtonbooléentrue, false

Objectos suportados

Regular Button - Flat Button


Esconder retangulo foco

Durante a execução, um campo ou qualquer área introduzível é delineado por um retângulo de seleção quando tem o foco (através da tecla Tab ou de um único clique). Pode ocultar este retângulo ativando esta propriedade. Hiding the focus rectangle may be useful in the case of specific interfaces.

Gramática JSON

NomeTipo de dadosValores possíveis
hideFocusRingbooleantrue, false

Objectos suportados

4D Write Pro area - Hierarchical List - Input - List Box - Subform


Esconder ressalte seleção

List boxes de tipo de seleção

Esta propriedade é utilizada para desativar o realce de seleção nos list boxes.

When this option is enabled, the selection highlight is no longer visible for selections made in list boxes. Selections themselves are still valid and work in exactly the same way as previously; however, they are no longer represented graphically onscreen, and you will need to define their appearance programmatically.

Por defeito, esta opção não está activada.

Gramática JSON

NomeTipo de dadosValores possíveis
hideSystemHighlightbooleantrue, false

Objectos suportados

List Box


Altura linha

An interface tool allowing the user to move the viewing area to the left or right.

Valores disponíveis:

Lista de propriedadesValor JSONDescrição
Sim"visible"The scrollbar is always visible, even when it is not necessary (in other words, when the size of the object contents is smaller than that of the frame).
Não"hidden"A barra de deslocação nunca é visível
Automático"automatic"The scrollbar appears automatically whenever necessary and the user can enter text larger than the object width

Picture objects can have scrollbars when the display format of the picture is set to “Truncated (non-centered).”

Gramática JSON

NomeTipo de dadosValores possíveis
scrollbarHorizontaltext"visible", "hidden", "automatic"

Objectos suportados

Hierarchical List - Subform - List Box - Input - 4D Write Pro area

Veja também

Barra de deslocação vertical


Resolução

Define a resolução do ecrã para o conteúdo da área 4D Write Pro. By default, it is set to 72 dpi (macOS), which is the standard resolution for 4D forms on all platforms. Setting this property to 96 dpi will set a windows/web rendering on both macOS and Windows platforms. Setting this property to automatic means that document rendering will differ between macOS and Windows platforms.

Gramática JSON

NomeTipo de dadosValores possíveis
dpinumber0=automatic, 72, 96

Objectos suportados

Área 4D Write Pro


Mostrar fundo

Apresenta/oculta as imagens de fundo e a cor de fundo.

Gramática JSON

NomeTipo de dadosValores possíveis
showBackgroundbooleantrue (padrão), false

Objectos suportados

Área 4D Write Pro


Mostrar rodapés

Apresenta/oculta os rodapés quando o modo de visualização da página está definido como "Página".

Gramática JSON

NomeTipo de dadosValores possíveis
showFootersbooleantrue (por padrão), false

Objectos suportados

Área 4D Write Pro


Mostrar barra de fórmulas

Quando activada, a barra de fórmulas é visível por baixo da interface da barra de ferramentas na área 4D View Pro. Se não estiver selecionada, a barra de fórmulas fica oculta.

This property is available only for the Toolbar interface.

Gramática JSON

NomeTipo de dadosValores possíveis
withFormulaBarbooleantrue (padrão), false

Objectos suportados

Área 4D View Pro


Mostrar cabeçalhos

Displays/hides the headers when Page view mode is set to "Page".

Gramática JSON

NomeTipo de dadosValores possíveis
showHeadersbooleantrue (padrão), false

Objectos suportados

Área 4D Write Pro


Mostrar caracteres ocultos

Apresenta/oculta caracteres invisíveis

Gramática JSON

NomeTipo de dadosValores possíveis
showHiddenCharsbooleantrue (padrão), false

Objectos suportados

Área 4D Write Pro


Mostrar régua horizontal

Displays/hides the horizontal ruler when the document view is in Page mode.

Gramática JSON

NomeTipo de dadosValores possíveis
showHorizontalRulerbooleantrue (padrão), false

Objectos suportados

Área 4D Write Pro


Mostrar HTML WYSYWIG

Enables/disables the HTML WYSIWYG view, in which any 4D Write Pro advanced attributes which are not compliant with all browsers are removed.

Gramática JSON

NomeTipo de dadosValores possíveis
showHTMLWysiwygbooleantrue, false (padrão)

Objectos suportados

Área 4D Write Pro


Mostrar moldura da página

Displays/hides the page frame when Page view mode is set to "Page".

Gramática JSON

NomeTipo de dadosValores possíveis
showPageFramesbooleantrue, false

Objectos suportados

Área 4D Write Pro


Mostrar referências

Displays all 4D expressions inserted in the 4D Write Pro document as references. When this option is disabled, 4D expressions are displayed as values. By default when you insert a 4D field or expression, 4D Write Pro computes and displays its current value. Select this property if you wish to know which field or expression is displayed. The field or expression references then appear in your document, with a gray background.

For example, you have inserted the current date along with a format, the date is displayed:

Com a propriedade Mostrar as referências ativada, a referência é apresentada:

4D expressions can be inserted using the ST INSERT EXPRESSION command.

Gramática JSON

NomeTipo de dadosValores possíveis
showReferencesbooléentrue, false (par défaut)

Objectos suportados

Área 4D Write Pro


Mostrar régua vertical

Displays/hides the vertical ruler when the document view is in Page mode.

Gramática JSON

NomeTipo de dadosValores possíveis
showVerticalRulerbooleantrue (padrão), false

Objectos suportados

Área 4D Write Pro


Tab Control Direction

You can set the direction of tab controls in your forms. This property is available on all the platforms but can only be displayed in macOS. You can choose to place the tab controls on top (standard) or on the bottom.

When tab controls with a custom direction are displayed under Windows, they automatically return to the standard direction (top).

Gramática JSON

NomeTipo de dadosValores possíveis
labelsPlacementboolean"top", "bottom"

Objectos suportados

Tab Control


Interface do usuário

You can add an interface to 4D View Pro areas to allow end users to perform basic modifications and data manipulations. 4D View Pro offers two optional interfaces to choose from, Ribbon and Toolbar.

Gramática JSON

NomeTipo de dadosValores possíveis
userInterfacetext"none" (padrão), "ribbon", "toolbar"

Objectos suportados

Área 4D View Pro

Veja também

guia de referência 4D View Pro


Barra rolagem vertical

An interface tool allowing the user to move the viewing area up and down.

Valores disponíveis:

Lista de propriedadesValor JSONDescrição
Sim"visible"The scrollbar is always visible, even when it is not necessary (in other words, when the size of the object contents is smaller than that of the frame).
Não"hidden"A barra de deslocação nunca é visível
Automático"automatic"The scrollbar appears automatically whenever necessary (in other words, when the size of the object contents is greater than that of the frame)

Picture objects can have scrollbars when the display format of the picture is set to “Truncated (non-centered).”

If a text input object does not have a scroll bar, the user can scroll the information using the arrow keys.

Gramática JSON

NomeTipo de dadosValores possíveis
scrollbarVerticaltext"visible", "hidden", "automatic"

Objectos suportados

Hierarchical List - Subform - List Box - Input - 4D Write Pro area

Veja também

Barra de deslocação horizontal


Modo de visualização

Sets the mode for displaying the 4D Write Pro document in the form area. Há três valores disponíveis:

  • Page: the most complete view mode, which includes page outlines, orientation, margins, page breaks, headers and footers, etc.
  • Draft: draft mode with basic document properties
  • Embedded: view mode suitable for embedded areas; it does not display margins, footers, headers, page frames, etc. This mode can also be used to produce a web-like view output (if you also select the 96 dpi resolution and the Show HTML WYSIWYG properties). This mode can also be used to produce a web-like view output (if you also select the 96 dpi resolution and the Show HTML WYSIWYG properties).

A propriedade Mode vista só é utilizada para a renderização no ecrã. Regarding printing settings, specific rendering rules are automatically used.

Gramática JSON

NomeTipo de dadosValores possíveis
layoutModetexte"page", "draft", "embedded"

Objectos suportados

Área 4D Write Pro


Zoom

Sets the zoom percentage for displaying 4D Write Pro area contents.

Gramática JSON

NomeTipo de dadosValores possíveis
zoomnúmeromínimo = 0

Objectos suportados

Área 4D Write Pro