Skip to main content
Version: v19 R8 BETA

On Column Resize

CodePode ser chamado porDefinição
33Área 4D View Pro - List Box - Coluna List Box The width of a column is modified directly by the user or consequently to a form window resize

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
sheetNametextName of the sheet of the event
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