Saltar para o conteúdo principal
Version: 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. On this context, the event object returned by the FORM Event command contains:

PropriedadeTipoDescrição
codeinteiro longoOn Column Resize
descriptiontext"On Column Resize"
objectNametextNome da área 4D View Pro
sheetNametextNome da folha do evento
rangeobjectCell range of the columns whose widths have changed
headerbooleanTrue if the row header column (first column) is resized, else 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