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

Imagem estática

Visão Geral

Static pictures are static objects that can be used for various purposes in 4D forms, including decoration, background, or user interface:

As imagens estáticas são armazenadas fora dos formulários e inseridas por referência. In the form editor, static picture objects are created by copy/paste or drag and drop operations.

If you place a static picture on page 0 of a multi-page form, it will appear automatically as a background element on all pages. You can also include it in an inherited form, applied in the background of other different forms. Either way, your database will run faster than if the picture was pasted into each page.

Formato e localização

The original picture must be stored in a format managed natively by 4D (4D recognizes the main picture formats: JPEG, PNG, BMP, SVG, GIF, etc.).

Podem ser utilizadas duas localizações principais para o percurso da imagem estática:

  • in the Resources folder of the project database. Appropriate when you want to share static pictures between several forms in the database. Neste caso, o nome do caminho está em "/RESOURCES/\<picture path>".
  • numa pasta de imagens (por exemplo, Images) dentro da pasta do formulário. Appropriate when the static pictures are used only in the form and/or yon want to be able to move or duplicate the whole form within the project or different projects. In this case, the Pathname is "<\picture path>" and is resolved from the root of the form folder.

Propriedades compatíveis

Bottom - CSS Class - Display - Height - Horizontal Sizing - Left - Object Name - Pathname - Right - Top - Type - Vertical Sizing - Visibility - Width