RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TDBNavigator.BtnClick Method

Simulates a button click on the database navigator, invoking the action of the button.

Pascal
procedure BtnClick(Index: TNavigateBtn); virtual;
C++
virtual __fastcall BtnClick(TNavigateBtn Index);

Use BtnClick when you want the application, not the user, to control the database navigator. Call BtnClick, specifying a TNavigateBtn type as the value of the Index parameter, to invoke the command associated with the selected button.

Note: Calling BtnClick triggers the navigator's OnClick event after the default action of the button.
 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!