True DataControl 8.0 Reference > True DataControl Control > TData Control Methods > PressButton Method |
PressButton Method
Invokes the action of a control’s button.
TData.PressButton Index
Method applies to TData control and TDataLite control.
Arguments: Index is one of the TDButtonEnum constants, identifying a button of the TData control.
Return Value: None
This method allows you to perform the action associated with a True DataControl button. It can be called even if the button is invisible or disabled. The ButtonPressed event is not fired by a call to PressButton.
The button is identified by one of the following constants (TDButtonEnum) specified by the Index argument:
0 – tdbButtonFirst
1 - tdbButtonPrevious
2 - tdbButtonNext
3 - tdbButtonLast
4 - tdbButtonNextPage
5 - tdbButtonPrevPage
6 - tdbButtonAdd
7 - tdbButtonDelete
8 - tdbButtonUpdate
9 - tdbButtonCancel
10 - tdbButtonBookmarks
11 - tdbButtonFind
12 - tdbButtonQuery
For more information, see True DataControl Buttons.
See Also