[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] Reference for unit 'Controls' (#lcl)

TWinControl.FindNextControl

Returns the preceding or next control in tab order.

Declaration

Source position: controls.pp line 2122

protected function TWinControl.FindNextControl(

  CurrentControl: TWinControl;

  GoForward: Boolean;

  CheckTabStop: Boolean;

  CheckParent: Boolean

):TWinControl;

Arguments

CurrentControl

  

The control which has the focus. If Nil, the first control (forward) or last control (backward) in TabOrder is returned, depending on GoForward.

GoForward

  

False to find the preceding control.

CheckTabStop

  

When True: only find controls with TabStop=True.

CheckParent

  

When True: only find controls with Parent=Self.

Function result

The (next) control.

Description

When CurrentControl is Nil, the first control (forward) or last control (backward) in TabOrder is returned, depending on GoForward.

The latest version of this document can be found at lazarus-ccr.sourceforge.net.