TableHeaderClicked
This event triggers when a user clicks on one of the table header buttons. There are three different table header buttons: the Row Header, the Column Header, and the Table Header button.
Syntax
[FieldName]_TableHeaderClicked (pTable as ISCBCdrTable, pWorkdoc as ISCBCdrWorkdoc, ClickType as CdrTableHeaderClickType, Row as Long, Column as Long, pSkipDefaultHandler as Boolean)
Parameter | Description |
---|---|
pTable | The current table object. |
pWorkdoc | The current workdoc object. |
ClickType | The click type of the mouse.
Possible values |
Row | This parameter contains the index of the current row on which the user clicked. |
Column | This parameter contains the index of the current column on which the user clicked. |
pSkipDefaultHandler | The default value is False. When the user wants to skip the default handling it has to be set to True. |
Sample Code
Private Sub Table_TableHeaderClicked(pTable as SCBCdrPROJLib.SCBCdrTable, pWorkdoc as SCBCdrPROJLib.SCBCdrWorkdoc, ByVal ClickType as SCBCdrPROJLib.CdrTableHeaderClickType, ByVal Row as Long, ByVal Column as Long, pSkipDefaultHandler as Boolean)
Select Case ClickType
Case CdrColumnHeaderClicked
'Table column header button has been clicked - define your message handler here
Case CdrColumnHeaderDoubleClicked
'Table column header button has been double clicked - define your message handler here
Case CdrColumnHeaderRightButtonClicked
'Right mouse button has been clicked on table column header - define your message handler here
Case CdrRowHeaderClicked
'Table row header button has been clicked - define your message handler here
Case CdrRowHeaderDoubleClicked
'Table row header button has been double clicked - define your message handler here
Case CdrRowHeaderRightButtonClicked
'Right mouse button has been clicked on table row header - define your message handler here
Case CdrTableHeaderClicked
'Table header button has been clicked - define your message handler here
Case CdrTableHeaderDoubleClicked
'Table header button has been double clicked - define your message handler here
Case CdrTableHeaderRightButtonClicked
'Right mouse button has been clicked on table header - define your message handler here
End Select
'Skip default handler of the table header clicked event (handler implemented in the Verifier component)
pSkipDefaultHandler = True
End Sub