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

On Column Resize

CodePode ser chamado porDefinição
334D View Pro Area - List Box - List Box ColumnA largura de uma coluna é modificada directamente pelo utilizador ou, consequentemente, por um redimensionamento da janela do formulário

Descrição

List Box

Este evento é gerado quando a largura de uma coluna na caixa de listagem é modificada por um utilizador. The event is triggered "live", i.e., sent continuously during the event, for as long as the list box or column concerned is being resized. This resizing is performed manually by a user, or may occur as a result of the list box and its column(s) being resized along with the form window itself (whether the form is resized manually or using the RESIZE FORM WINDOW command).

The On Column Resize event is not triggered when a fake column is resized.

4D View Pro

This event is generated when the width of a column is modified by a user. Neste contexto, o objeto de evento retornado pelo comando FORM Event contém:

PropriedadeTipoDescrição
codeinteiro longoOn Column Resize
descriptiontext"On Column Resize"
objectNametextNome da área 4D View Pro
sheetNametextNome da folha do evento
rangeobjectIntervalo de células das colunas cujas larguras foram alteradas
headerbooleanTrue se a coluna de cabeçalho da linha (primeira coluna) for redimensionada, senão false

Exemplo

 If(FORM Event.code=On Column Resize)
VP SET CELL STYLE(FORM Event.range;New object("hAlign";vk horizontal align right))
End if