Saltar para o conteúdo principal
Versão: 20 R5 BETA

Componentes

Um componente 4D é um conjunto de código 4D e formulários que representam uma ou mais funcionalidades que pode instalar e usar nos seus projectos. For example, the 4D SVG component adds advanced commands and an integrated rendering engine that can be used to display SVG files.

Instalação de componentes

Several components are preinstalled in the 4D development environment, but a lot of 4D components from the 4D community can be found on GitHub. Additionnally, you can develop your own 4D components.

Installation and loading of components in your 4D projects are handled through the 4D package manager.

Utilização de componentes

O código de componente exposto (métodos e funções) assim como os formulários podem ser usados como elementos padrão no seu desenvolvimento 4D.

When an installed component contains methods, classes, and functions, they appear in the Component Methods theme of the Explorer's Methods page:

alt-text

nota

If the component is compiled, its namespace is written between parentheses after its name. Utilize este espaço de nomes para aceder às funções do componente.

You can select a component project method or class and click on the Documentation button of the Explorer to get information about it, if any.

alt-text