RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TField.FocusControl Method

Forces a form's focus to the first data-aware component associated with the field object.

Pascal
procedure FocusControl;
C++
__fastcall FocusControl();

Call FocusControl to switch the focus of the form to a data-aware control associated with the field. Because it is possible that the field's value can change even if its associated data-aware control does not have the focus, calling FocusControl can aid in drawing attention to a new value when it fails to be validated. 

 

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