FMX.Types.IRoot.NewFocusedControl

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function NewFocusedControl(const Value: IControl): IControl;

C++

virtual _di_IControl __fastcall NewFocusedControl(const _di_IControl Value) = 0 ;

Properties

Type Visibility Source Unit Parent
function public
FMX.Types.pas
FMX.Types.hpp
FMX.Types IRoot

Description

Declares a method to set the specified Value control as having the focus and returns the control that obtains the focus.

The TCommonCustomForm class implements the NewFocusedControl method. In this implementation, NewFocusedControl checks whether the specified Value control can obtain the focus. If Value cannot obtain the focus, then NewFocusedControl returns the youngest parent of Value that can obtain the focus. Otherwise, NewFocusedControl returns nil.

See Also