Saltar para o conteúdo principal
Version: v20 BETA

Grade de botões

Uma grelha de botões é um objecto transparente colocado em cima de um gráfico. O gráfico deve representar um array linha por coluna. Quando um dos gráficos é clicado, terá uma aparência afundada ou prensada:

É possível utilizar um objeto de grelha de botões para determinar onde o usuário clica no gráfico. The object method would use the On Clicked event and take appropriate action depending on the location of the click.

Criando grades de botões

To create the button grid, add a background graphic to the form and place a button grid on top of it. Specify the number of rows and columns.

In 4D, a button grid is used as a color palette:

Usar grades de botões

The buttons on the grid are numbered from top left to bottom right. In the above example, the grid is 16 columns across by 16 rows down. O botão na posição superior-esquerda retorna 1 quando clicado. If the red button at the far right of the second row is selected, the button grid returns 32. Se nenhum elemento for seleccionado, o valor é 0

Ir para página

You can assign the gotoPage standard action to a button grid. When this action is selected, 4D will automatically display the page of the form that corresponds to the number of the button that is selected in the button grid. For example, if the user selects the tenth button of the grid, 4D will display the tenth page of the current form (if it exists).

Propriedades compatíveis

Estilo da borde - [Inferior](properties_CoordinatesAndSizing. md#bottom) - Classe - Colunas - [Droppable](properties_Action. md#droppable) - Altura - Conselho de ajuda - [Tamanho horizontal](properties_ResizingOptions. md#horizontal-sizing) - Esquerda - [Nome do objeto](properties_Object. md#object-name) - Direita - Filas - [Ação padrão](properties_Action. md#standard-action) - Superior - [Tipo](properties_Object. md#type) - Variável ou expressão - [Tamanho vertical](properties_ResizingOptions. md#vertical-sizing) - Ancho - Visibilidade