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

Área Plug-in

A plug-in area is an area on the form that is completely controlled by a plug-in. The ability to incorporate plug-ins into forms gives you unlimited possibilities when creating custom applications. A plug-in can perform a simple task such as displaying a digital clock on a form, or a complex task such as providing full-featured word processing, spreadsheet, or graphics capabilities.

Al abrir una aplicación, 4D crea una lista interna de los plug-ins instalados en la aplicación. Una vez que haya insertado un área de plug-in en un formulario, puede asignar un plug-in al área directamente en la lista Tipo en la lista de propiedades:

Some plug-ins, such as 4D Internet Commands, cannot be used in forms or external windows. When a plug-in cannot be used in a form, it does not appear in the plug-in list of the Property List.

If you draw a plug-in area that is too small, 4D will display it as a button whose title is the name of the variable associated with the area. During execution, the user can click on this button in order to open a specific window displaying the plug-in.

Propriedades Avançadas

If advanced options are provided by the author of the plug-in, a Plug-in theme containing an Advanced Properties button may be enabled in the Property list. In this case, you can click this button to set these options, usually through a custom dialog box.

Instalação de plug-ins

Para adicionar um plug-in no seu ambiente 4D, primeiro precisa de sair do 4D. Os plug-ins são carregados quando se inicia 4D. Para más información sobre la instalación de plug-ins, consulte Instalación de plug-ins o componentes.

Criação de plug-ins

If you are interested in designing your own plug-ins, you can receive extensive information about writing and implementing plug-ins. 4D ofrece un kit completo (en github) para ayudarle a escribir plug-ins personalizados.

Propriedades compatíveis

Border Line Style - Bottom - Advanced Properties - Class - Draggable - Droppable - Expression Type - Focusable - Height - Horizontal Sizing - Left - Method - Object Name - Plug-in Kind - Right - Top - Type - Variable or Expression - Vertical Sizing - Visibilty - Width