On Header Click
Code | Pode ser chamado por | Definição |
---|---|---|
42 | 4D View Pro Area - List Box - List Box Column | Ocorre um clique no cabeçalho de uma coluna |
Descrição
List Box
This event is generated when a click occurs on the header of a column in the list box. In this case, the Self
command lets you find out the header of the column that was clicked.
If the Sortable property was selected for the list box, you can decide whether or not to authorize a standard sort of the column by passing the value 0 or -1 in the $0
variable:
- Se
$0
é igual a 0, é efetuada uma ordenação padrão. - If
$0
equals -1, a standard sort is not performed and the header does not display the sort arrow. The developer can still generate a column sort based on customized sort criteria using the 4D language.
If the Sortable property is not selected for the list box, the $0
variable is not used.
4D View Pro
This event is generated when the user clicks on a column or row header in a 4D View Pro document. In this context, the event object returned by the FORM Event
command contains:
Propriedade | Tipo | Descrição |
---|---|---|
code | inteiro longo | 42 |
description | text | "On Header Click" |
objectName | text | Nome da área 4D View Pro |
sheetName | text | Nome da folha do evento |
range | object | Intervalo de células |
sheetArea | inteiro longo | O local da folha onde o evento teve lugar: |
Exemplo
If(FORM Event.code=On Header Click)
Case of
:(FORM Event.sheetArea=1)
$values:=VP Get values(FORM Event.range)
:(FORM Event.sheetArea=2)
VP SET CELL STYLE(FORM Event.range;New object("backColor";"gray"))
:(FORM Event.sheetArea=0)
VP SET CELL STYLE(FORM Event.range;New object("borderBottom";\
New object("color";"#800080";"style";vk line style thick)))
End case
End if