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

On Selection Change

CodePode ser chamado porDefinição
314D View Pro area - 4D Write Pro area - Form - Hierarchical List - Input - List BoxA seleção no objeto é modificada

Descrição

Este evento pode ser gerado em diferentes contextos.

4D View Pro

A seleção atual de linhas ou de colunas é modificada. In this context, the event object returned by the FORM Event command contains:

PropriedadeTipoDescrição
codeinteiro longo31
descriptiontext"On Selection Change"
objectNametextNome da área 4D View Pro
sheetNametextNome da folha do evento
oldSelectionsobjectIntervalo de células antes da alteração
newSelectionsobjectIntervalo de células após a alteração

Exemplo

 If(FORM Event.code=On Selection Change)
VP SET CELL STYLE(FORM Event.oldSelections;New object("backColor";Null))
VP SET CELL STYLE(FORM Event.newSelections;New object("backColor";"red"))
End if

Formulário lista

O registo atual ou a seleção atual de linhas é modificado num formulário lista.

Lista hierárquica

This event is generated every time the selection in the hierarchical list is modified after a mouse click or keystroke.

Entrada & 4D Write Pro

The text selection or the position of the cursor in the area is modified following a click or a keystroke.

List box

This event is generated each time the current selection of rows or columns of the list box is modified.