Saltar para o conteúdo principal
Version: v20 BETA

Imagem estática

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

Static pictures are stored outside the forms and inserted by reference. 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. De qualquer maneira, seu banco de dados roda mais rápido se a imagem for colada em cada página.

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.).

Two main locations can be used for static picture path:

  • na pasta Resources do banco de dados projeto. Apropriado quando quiser compartir imagens estáticas entre vários formulários do banco de dados. In this case, the Pathname is in the "/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