RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TWinControl.FindNextControl Method

Returns the control's next child in the tab order after the specified control.

Pascal
function FindNextControl(CurControl: TWinControl; GoForward: Boolean; CheckTabStop: Boolean; CheckParent: Boolean): TWinControl;
C++
__fastcall TWinControl * FindNextControl(TWinControl * CurControl, Boolean GoForward, Boolean CheckTabStop, Boolean CheckParent);

Call FindNextControl to find the next child control in the tab order after CurControl. If CurControl is not a child of the control, FindNextControl returns the first child control in the tab order. 

The GoForward parameter controls the direction of the search. If GoForward is true, FindNextControl searches forward through the child controls in tab order. If Go Forward is false, FindNextControl searches backward through the controls. 

The CheckTabStop and CheckParent parameters control whether FindNextControl performs certain checks on the controls it finds. If CheckTabStop is true, the returned control must have its TabStop property set to true. If CheckParent is true, the returned control's Parent property must indicate the parent control. 

FindNextControl calls the GetTabOrderList method to build its list of possible "next" controls. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!